i got one for you
i have two tables in a data base.
the first one is called inspections it consits of
col1 Well_name vchar
col2 Date shortdate
col3 level numeric
grouped by well name and date is desc
second table is called delivery it consits of
col1 well_name vchar
col2 date shortdate
col3 amount numeric
what i need is to complie this data into the following table or view
col1 well_name group by
col2 date of first inspection
col3 level of first inspection
col4 date of second inspection
col5 level of second inspection
col6 sum of deliveies from the second table beteen the date in col1 and col2
this one as given me nightmares
i have two tables in a data base.
the first one is called inspections it consits of
col1 Well_name vchar
col2 Date shortdate
col3 level numeric
grouped by well name and date is desc
second table is called delivery it consits of
col1 well_name vchar
col2 date shortdate
col3 amount numeric
what i need is to complie this data into the following table or view
col1 well_name group by
col2 date of first inspection
col3 level of first inspection
col4 date of second inspection
col5 level of second inspection
col6 sum of deliveies from the second table beteen the date in col1 and col2
this one as given me nightmares
Comment