Please Help Me With This Quesry

Apr 25, 2008



select name.pid,name.sex

from name

where name.pid in (

select doc_11.pid

from doc_11

union

select lic_11.pid

from lic_11)

and name.sex != 'C'

Ok now I have dd_date column also in lic_doc_11 and docloc_11 table. and from those dates I have to get the max(dd_date) and display it....

also I want to take out all dates which are null or empty

please modify the above quary and let me know thatnks

View 3 Replies


ADVERTISEMENT

How To Set Up A Regular Job Which Will Put The Quesry Result Into File And Email It?

Oct 17, 2006

Dear forum people,

I created a query which suppose to run every 2 weeks. I know how to schedule a job, my question is how to get the query result into a text or excel file.
If I need to use DTS package, please give me a step by step explanation how to move the result into text file and how to email this file.

I am appreciate every answer.

Thank you.

Ann

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved