Click here to Skip to main content
15,891,372 members
Home / Discussions / Database
   

Database

 
AnswerRe: Jobs succeeds when executed manually but fails when scheduled Pin
Ashfield10-Sep-08 23:14
Ashfield10-Sep-08 23:14 
GeneralRe: Jobs succeeds when executed manually but fails when scheduled Pin
annu0810-Sep-08 23:31
annu0810-Sep-08 23:31 
GeneralRe: Jobs succeeds when executed manually but fails when scheduled Pin
Ashfield10-Sep-08 23:56
Ashfield10-Sep-08 23:56 
GeneralRe: Jobs succeeds when executed manually but fails when scheduled Pin
annu0811-Sep-08 0:15
annu0811-Sep-08 0:15 
GeneralRe: Jobs succeeds when executed manually but fails when scheduled Pin
annu0811-Sep-08 1:42
annu0811-Sep-08 1:42 
GeneralRe: Jobs succeeds when executed manually but fails when scheduled Pin
Ashfield11-Sep-08 3:06
Ashfield11-Sep-08 3:06 
GeneralRe: Jobs succeeds when executed manually but fails when scheduled Pin
annu0811-Sep-08 3:19
annu0811-Sep-08 3:19 
QuestionHelp required with Joins Pin
Rajiya10-Sep-08 20:14
Rajiya10-Sep-08 20:14 
Hi All,

I am writing a query for a daily report generation. It involves data from 4 tables. Am so confused about which joins to use. It also makes use of GROUP BY CLAUSE on Cust_NBR and make use of agrregate function Count.
I have written a query as follows but it's not working.
Plz help me...as it is urgent.

select SH.ARBL_NBR Airbill,S.cust_NBR Account_Number,S.Shpt_Id,S.City_Nam sender_City,
S.St_Prvnc_Cd Sender_State,s.cntry_id Sender_Country,S.Postl_Cd sender_postal,
S.Svc_Lvl_Cd Sender_Service_Area_Code,
R.City_Nam Receiver_City,R.St_Prvnc_Cd Receiver_State,R.cntry_id Reciever_Country,
R.Postl_Cd Receiver_Postal, R.Svc_Lvl_Cd Receiver_Service_Area_Code,
U.Frst_Nam||' ' ||U.last_nam Name,
S.STR_ADDR_1 Sender_Street_Address1, S.Str_Addr_2 Sender_Street_Address2
from shpt SH
Right Outer Join shpt_addr S
on sh.shpt_id = S.shpt_id
Right Outer Join shpt_addr R
ON S.shpt_id = R.shpt_id
Right Outer Join Users U
ON SH.User_Id = U.User_Id
Right Outer Join Cust C
On S.Cust_Nbr = C.Cust_Nbr
where S.ADDR_TYP_CD = 1 and R.Addr_Typ_Cd = 2
and c.creat_dt between trunc(sysdate) and trunc(sysdate-90)
group By S.Cust_Nbr Desc
Having Count(sh.shpt_id >= 25)
AnswerRe: Help required with Joins Pin
EBeylo10-Sep-08 20:43
EBeylo10-Sep-08 20:43 
GeneralRe: Help required with Joins Pin
Rajiya10-Sep-08 21:20
Rajiya10-Sep-08 21:20 
GeneralRe: Help required with Joins Pin
EBeylo10-Sep-08 22:56
EBeylo10-Sep-08 22:56 
QuestionAccess to SQL Pin
TheEagle10-Sep-08 20:07
TheEagle10-Sep-08 20:07 
AnswerRe: Access to SQL Pin
Paul Conrad11-Sep-08 6:33
professionalPaul Conrad11-Sep-08 6:33 
Questionreturn Left or right value Pin
nelsonpaixao10-Sep-08 13:09
nelsonpaixao10-Sep-08 13:09 
AnswerRe: return Left or right value Pin
Mycroft Holmes10-Sep-08 15:29
professionalMycroft Holmes10-Sep-08 15:29 
GeneralRe: return Left or right value Pin
nelsonpaixao11-Sep-08 14:10
nelsonpaixao11-Sep-08 14:10 
AnswerRe: return Left or right value Pin
PIEBALDconsult10-Sep-08 16:49
mvePIEBALDconsult10-Sep-08 16:49 
GeneralRe: return Left or right value Pin
nelsonpaixao11-Sep-08 14:00
nelsonpaixao11-Sep-08 14:00 
QuestionEnhance this query Pin
DrukenProgrammer10-Sep-08 9:19
DrukenProgrammer10-Sep-08 9:19 
AnswerRe: Enhance this query Pin
Wendelius10-Sep-08 9:57
mentorWendelius10-Sep-08 9:57 
GeneralRe: Enhance this query Pin
DrukenProgrammer12-Sep-08 23:52
DrukenProgrammer12-Sep-08 23:52 
AnswerRe: Enhance this query Pin
Blue_Boy10-Sep-08 10:02
Blue_Boy10-Sep-08 10:02 
AnswerRe: Enhance this query Pin
nelsonpaixao10-Sep-08 13:15
nelsonpaixao10-Sep-08 13:15 
QuestionImporting fixed length file to SQL server Pin
geekfromindia10-Sep-08 7:26
geekfromindia10-Sep-08 7:26 
AnswerRe: Importing fixed length file to SQL server Pin
Wendelius10-Sep-08 8:06
mentorWendelius10-Sep-08 8:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.