Viewing 8 posts - 16 through 23 (of 23 total)
I presume that the FROM and WHERE clauses are the same for both statements?
INSERT INTO FINANCEFLASH(recharge_no, recharge_value)
SELECT COUNT(*), SUM(GACCENTRYA.AMTLOC_0 * GACCENTRYD.SNS_0)
FROM ...
You do not...
March 2, 2007 at 1:54 am
The UPDATE statement is only valid for changing existing RECORDS.
To "update" a table, you use UPDATE (records that are already present), INSERT (records that are not yet present) and DELETE...
March 1, 2007 at 3:17 am
UPDATE A SET FlagId = 1;
Unless I am overlooking something, this is basic SQL.
March 1, 2007 at 2:55 am
The "A" attribute on a Windows file indicates that it is "ready for archiving". This is a (basic) feature of Windows to support incremental backup: when a file is changed...
February 27, 2007 at 1:47 am
If you want to reduce a one-to-many TABLE1/TABLE2 relationship to a one-by-one relationship, you will have to use aggregation to perform a reduction on TABLE2.
For example:
SELECT t1.PRINTKEY, t1.T1_COL_A, MAX(t2.T2_COL_B),...
February 21, 2007 at 2:11 am
It's very simple. The wildcards in SQL SERVER are '%' (percent) for "any number of arbitrary characters" and '_' (underscore) for a single arbitrary character, not the '*' (asterisk) and...
February 21, 2007 at 1:59 am
Forget about using stored procedures in SELECTs.
I tried to fool SQLServer once by creating a user-defined function, in which I called the stored procedure and put the results in variables,...
February 13, 2007 at 2:21 am
Exactly what sprang to my mind! Get people used to entering their identity and bank data into a website for safety, and they will soon give it to any site...
February 8, 2007 at 2:58 am
Viewing 8 posts - 16 through 23 (of 23 total)