Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 max data

Author  Topic 

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2007-07-25 : 05:16:33
tcdhdr(table)
=========
tcdhdrcode
-----------
cst
vat
ser


tcddtl (table)
======

tcddtlcode tcdvar
cst cst1%
cst cst12%
cst cst 8%
vat vat 1.2%
vat vat 12.5%


i want the tcdhrdcode from the header table which holds the max of tcdvar.
by joining two table

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-07-25 : 05:46:58
what have you tried so far?

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
Go to Top of Page
   

- Advertisement -