I have a table table1 with column A holding values
ORD26
ORD27
ORD28
I have a second table table2 with column B holding values
21/10/2011
22/10/2011
25/10/2011
I want the result as
ORD26-21/10/2011
ORD27-22/10/2011
ORD28-25/10/2011
I need to take this value to a drop down list ..
How can I do this?
If your two tables have a common column
order_id, and your column intable2is aDATETIME, then use this query:The “style” of your converted datetime column is controlled by the
CONVERTfunction in T-SQL – read all about it on MSDN Books Online