Project

General

Profile

Actions

Bug #3064

closed

DBA: check that plot names match project code

Added by Michael Lee almost 17 years ago. Updated over 16 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
EntryDB
Target version:
Start date:
01/12/2008
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3064

Description

SQL to accomplish that:
SELECT project.projectName, project.entry_projectCode AS [project Code], observation.authorObsCode AS obsCode, observation.authorPlotCode AS plotCode_entry, plot.authorPlotCode AS plotcode_archive, IIf(startsWith([observation].[authorObsCode],[entry_projectCode] & "-") And startsWith([observation].[authorPlotCode],[entry_projectCode] & "-") And startsWith(nz([plot].[authorPlotCode],[entry_projectCode] & "-"),[entry_projectCode] & "-"),True,False) AS allOK
FROM (observation LEFT JOIN plot ON observation.PLOT_ID = plot.PLOT_ID) LEFT JOIN project ON observation.PROJECT_ID = project.PROJECT_ID;


Related issues

Has duplicate InfoVeg - Bug #3009: Check that plots are named according to their project labelResolvedMichael Lee11/22/2007

Actions
Actions

Also available in: Atom PDF