Search the web
Sign In
New User? Sign Up
SQLQueriesNoCode
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 4326 - 4357 of 4357   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
4326
Hi Group, I am trying to answer this question: Get the aids and anames of agents with maximum percent who place orders for all products ordered by customer...
mikeasic
Offline Send Email
Sep 15, 2009
7:45 pm
4327
Hi, There was a certain requirement in a application that the database language for the user (DB credentials) should be <British English>; to check that I used...
Noman Aftab
noman17pk
Offline Send Email
Oct 9, 2009
12:00 pm
4328
Dear all I am really new to complex sql query I need help to find another possibilities for this query there's so many subquery to skala_rental table Ho to...
Aal-Rafizeldi
rafizeldi
Offline Send Email
Oct 13, 2009
12:00 pm
4329
sorry the link is broken here my queryplan.txt <http://f1.grp.yahoofs.com/v1/wGvUSvFQL-KfivykdrEHWroD7TxoG6XZzJTjxlWtkm\ ...
Aal-Rafizeldi
rafizeldi
Offline Send Email
Oct 13, 2009
12:52 pm
4330
Without knowing the schema you ask a lot of us. John Warner...
John Warner
john@...
Send Email
Oct 13, 2009
2:43 pm
4331
Thank you Sir, for remind me, i totally forgot about it this my query http://docs.google.com/View?id=df9tz3kc_49hk4vmgd6 ...
Aal-Rafizeldi
rafizeldi
Offline Send Email
Oct 14, 2009
1:38 am
4332
Hi Guys, I have a table ENCHANGE_RATES with columns: CURRENCY_CODE varchar(3) EFFECTIVE_FROM datetime EFFECTIVE_TO datetime RATE decimal(22,8) suppose I have...
Noman Aftab
noman17pk
Offline Send Email
Oct 16, 2009
4:30 am
4333
Hi Noman I thought I would attempt a quick answer. What you need to do is get the Max(Date) less than or equal to the date requested. (It might be an issue if...
Damhuis Anton
antondamhuis
Offline Send Email
Oct 16, 2009
3:08 pm
4334
Hello, I have a table with item and description like below Item Description 1234a Tool A 1234b Null 1234c Null 2345a Item B 2345b Null 2345c Null How...
J P
pulverizers73
Offline Send Email
Oct 16, 2009
4:19 pm
4335
Hello, I have a table with item and description like below Item Description 1234a Tool A 1234b Null 1234c Null 2345a Item B 2345b Null 2345c Null How...
pulverizers73
Offline Send Email
Oct 16, 2009
5:03 pm
4336
UPDATE Table T SET T.Description = 'Tool A' WHERE Item LIKE '1234?'; John Warner ... as the ... any...
John Warner
john@...
Send Email
Oct 16, 2009
5:42 pm
4337
I have 19000 different items, so that would work if I modified the code 19000 times. SQL Server 2005 is my version if that helps. ...
J P
pulverizers73
Offline Send Email
Oct 16, 2009
6:14 pm
4338
I am getting What I need to get, what I further what is to merge it into a single query. "Max(Date) less than or equal to the date " is just half of my...
Noman Aftab
noman17pk
Offline Send Email
Oct 16, 2009
6:48 pm
4339
Is the pattern of Item numbers consistent, A always has a the valid description and A is always followed by b and c but not d e f ... ? John Warner ... 19000 ...
John Warner
john@...
Send Email
Oct 16, 2009
7:16 pm
4340
Also, always 4 digits? And is this a one time query or does this need to be repeated on a regular? Haven't time right now (Friday) but will noodle out...
John Warner
john@...
Send Email
Oct 16, 2009
7:23 pm
4341
update OriginalTable set Description = TableWithCorrectDescription.Description from Table OriginalTable, Table TableWithCorrectDescription where substr(1,4,...
Noman Aftab
noman17pk
Offline Send Email
Oct 16, 2009
9:37 pm
4342
no i fixed it by creating a table with unique item numbers and descriptions and then running an update to set the description to the unique description on a...
J P
pulverizers73
Offline Send Email
Oct 16, 2009
10:01 pm
4343
Wild card should be % instead of ? for MSSQL. Sent from my Verizon Wireless BlackBerry ... From: "John Warner" <john@...> Date: Fri, 16 Oct 2009...
peterim5659@...
peterim5659
Offline Send Email
Oct 17, 2009
2:54 am
4344
Actually, you can use a self-join instead of a temporary table: update Table t set t.description=t2.description from Table t, Table t2 where...
MELVYN LOPEZ
melvynpatrick
Offline Send Email
Oct 17, 2009
11:41 am
4345
REMATCH:  I left out the null requirement...sorry. Here it is again: update Table t set t.description= t2.description from Table t, Table t2 where...
MELVYN LOPEZ
melvynpatrick
Offline Send Email
Oct 17, 2009
11:43 am
4346
REMATCH2:  I left out the non-null requirement for instance t2. ..sorry. Here it is again: update Table t set t.description= t2.description from Table t,...
MELVYN LOPEZ
melvynpatrick
Offline Send Email
Oct 17, 2009
11:50 am
4347
BTW, it is always good practice to test your update query with a select of which rows are going to be affected by the update... here is what i do: I highlight...
MELVYN LOPEZ
melvynpatrick
Offline Send Email
Oct 17, 2009
11:55 am
4348
THE FINAL UPDATE STATEMENT... see, that this resolves your problem... Sometimes, it takes multiple tries.... update Table t set t.description= t2.description ...
MELVYN LOPEZ
melvynpatrick
Offline Send Email
Oct 17, 2009
12:16 pm
4349
Actually it should have been the "_" underscore. I only wanted to match a single character. The '%' character matches zero or more characters. But you are...
John Warner
john@...
Send Email
Oct 17, 2009
3:05 pm
4350
Why is all_degrees null when degree2 is null? what am i missing? it only works if degree2 is not null I want DEGREE1, DEGREE2 (if not null) select...
pulverizers73
Offline Send Email
Nov 5, 2009
6:31 pm
4352
I think you'll have to check Is NULL and not just NULL try this way select degree1,degree2, (case when degree2 IS NULL then degree1 else degree1+', '+degree2...
dina_4ev3r
Offline Send Email
Nov 5, 2009
6:58 pm
4354
Msg 156, Level 15, State 1, Line 1 Incorrect syntax near the keyword 'is'....
pulverizers73
Offline Send Email
Nov 5, 2009
7:13 pm
4355
SELECT degree1, degree2, (CASE WHEN degree2 IS NULL THEN degree1 ELSE degree1 + ', ' + degree2 END) AS all_degrees FROM fac_facultytbl GROUP BY degree1, ...
John Warner
john@...
Send Email
Nov 5, 2009
7:57 pm
4356
I don't have any instance of SQL server to check the query. But as far as I can recollect the syntax it should work....
dina_4ev3r
Offline Send Email
Nov 5, 2009
8:07 pm
4357
Thanks, the suggestions triggered this solution.  Thanks for all responses, it pointed me in the right direction   ...
J P
pulverizers73
Offline Send Email
Nov 5, 2009
8:13 pm
Messages 4326 - 4357 of 4357   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help