Viewing 15 posts - 1 through 15 (of 18 total)
I want to thank you for your help!!
I already apply this to the LIVE environment and is working like a charm!!!!!
THANK YOU SO MUCH!!!!
RITS
June 25, 2014 at 5:02 pm
Never mind, I see your code working!!!!!
😀
June 25, 2014 at 3:40 pm
I am sorry, I misunderstood the use of Row_Number.
So you will use the row-number to count the number of records found, right?
I just don't see how the invoice number "340"...
June 25, 2014 at 3:36 pm
Hi Sean,
Thank you for your response.
The ROW_NUMBER can't be used. The "340" is a value that will change every time this script is used, furthermore this will be entered by...
June 25, 2014 at 2:17 pm
I think I just found out how to insert the code
--===== If the test table already exists, drop it
CREATE DATABASE TEST_DB
--=====Create table
use TEST_DB
CREATE TABLE SHIPHIST
(HANDLE varchar(20),INV_NUM varchar(20));
--=====Create values
INSERT INTO...
June 25, 2014 at 2:10 pm
Please see attached file for testing purposes.
For results, I would like to prompt the user to enter the "HANDLE" and the "Start Invoice #", the script will
search for and COUNT...
June 25, 2014 at 2:01 pm
Thank you for your response!!!
So I pasted the entire SELECT CASE in the FROM statement and I try to INNER JOIN to my first table "zzoordrh" but I am...
November 21, 2012 at 3:14 pm
Hi lnardozi.
Thank you for the response. I have been trying to insert the whole CASE statement inside my existing elaborated query but I keep having errors. Perhaps I am not...
November 21, 2012 at 2:04 pm
Thank you Lowell!!!!!!!
It works!!!!
I just not sure this this is what I was expecting. See, I am getting three columns: BILL_NUM, VALUE, and zzedatawhse.value.
The table shows all records from table...
November 6, 2012 at 1:26 pm
Humm,
Thank you B, I added both and I am still getting:
Incorrect syntax near '='.
This is what it looks like now:
SELECTzzoordrh.BILL_NUM, zzedatawhse.value,
CASE zzedatawhse.VALUE
WHEN zzedatawhse.QUALIFIER = 'PL' AND zzedatawhse.SEGMENT = 'SLN'...
November 5, 2012 at 9:44 am
Thank you for the suggestions. So this is what I have:
SELECTzzoordrh.BILL_NUM, zzedatawhse.value
CASE
WHEN zzedatawhse.QUALIFIER = 'PL' AND zzedatawhse.SEGMENT = 'SLN' THEN...
November 5, 2012 at 9:32 am
Congratulation Anatoly!!!!!!
Yes, you were able to achieve what I was looking for.
The little detailed note about the "Division" was overlooked until you pointed it out. I sort of figured it...
June 18, 2012 at 9:05 am
Well I have to thank you both for the results and time spent.
The story with this tables and database is: I work for a company who uses some ERP software...
June 15, 2012 at 7:55 am
HI Grasshopper,
From the Post #1314836,
is this the rest of the tables I had posted at the beginning of the post from the attached?
The answer to the question: You can add...
June 13, 2012 at 8:50 pm
You are right Grasshopper!
I am not an expert SQL server guru and I will provably never be one not matter how much time I spend on this, but I try!...
June 12, 2012 at 2:20 pm
Viewing 15 posts - 1 through 15 (of 18 total)