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.
Author |
Topic |
mahaveera
Starting Member
3 Posts |
Posted - 2008-11-05 : 15:26:09
|
to convert the query from sql2000 t0 2005.i recived the error mesage. |
|
RickD
Slow But Sure Yak Herding Master
3608 Posts |
Posted - 2008-11-05 : 15:37:00
|
Here's the first one, you can learn from that and do the second yourself.@YourVariable is whatever you used to set ? from.select count(*) from inquiry inqinner join inquiry_batch bat on inq.inquiry_batch_id = bat.inquiry_batch_idinner join inquiry_status stat on inq.inquiry_batch_id = stat.inquiry_batch_id and inq.inquiry_id = stat.inquiry_id and inq.current_status_id = stat.status_idleft join subscriber subs on subs.subscriber_nbr = inq.subscriber_nbrinner join inquiry_batch_type [type] on [type].input_Type = bat.inquiry_batch_input_typeinner join inquiry_status_type s_type on s_type.inquiry_status_type = stat.inquiry_status_typeinner join user_assigned_data_concern usr_dc on inq.data_concern_code = usr_dc.inquiry_data_concern_codewhere stat.inquiry_status_type = 6 and stat.assignment_user_id is not null and usr_dc.[user_id] = @YourVariable and inq.country_wb_code IN (select usr_c.country_wb_code from user_assigned_country usr_c where usr_c.[user_id] = usr_dc.[user_id]) EDIT: WHY REMOVE YOUR ORIGINAL POST WITH THE QUERIES???? |
|
|
mahaveera
Starting Member
3 Posts |
Posted - 2008-11-12 : 21:12:45
|
thx |
|
|
|
|
|