Viewing 15 posts - 6,661 through 6,675 (of 10,144 total)
Post up what you have so far, should be straightforward 😉
September 9, 2011 at 2:14 am
rmechaber (9/8/2011)
ChrisM@Work (9/8/2011)
September 8, 2011 at 10:05 am
Some older languages used to perform "macro expansion" which swapped the variable for the value at runtime to construct a runnable statement. SQL Server doesn't. Instead, you have to construct...
September 8, 2011 at 9:19 am
SELECT ACCOUNT, CURRENCY, AMOUNT, 'Source' AS DATASOURCE
FROM MyTable
UNION ALL
SELECT ACCOUNT, LOCAL_CURRENCY, LOCAL_AMOUNT, 'Translated' AS DATASOURCE
FROM MyTable
September 8, 2011 at 9:05 am
GSquared (9/8/2011)
rmechaber (9/8/2011)
ChrisM@Work (9/7/2011)
[<snip>Aha - they did. Your friend's statement was absolutely false! 😉
Chris, thanks for posting that: this is a fascinating article and real food for thought. I'm...
September 8, 2011 at 8:44 am
rmechaber (9/8/2011)
ChrisM@Work (9/7/2011)
[<snip>Aha - they did. Your friend's statement was absolutely false! 😉
Chris, thanks for posting that: this is a fascinating article and real food for thought. I'm not...
September 8, 2011 at 8:33 am
karthikeyan-444867 (9/8/2011)
CoolingPipe(Scott) (9/8/2011)
declare @sql varchar(max)
set @sql = 'select Sec_Id'
max(case perf_dt when cast(''' + convert(varchar(10),perf_dt,101)
+ ''' as datetime) then perf_return else null end) [' +...
September 8, 2011 at 6:51 am
Why work on only one cardcode at a time? Have a look at what this returns, I'm sure it can be tailored to your requirements.
SELECT
ocrd.CardCode,
ocrd.CardName,
ocrd.Phone1,
ocrd.Cellular,
oinv.*,...
September 8, 2011 at 6:43 am
GSquared (9/8/2011)
ChrisM@Work (9/7/2011)
GSquared (6/3/2011)
September 8, 2011 at 6:33 am
Karthik
Track down and read Jeff Moden's excellent article "Cross tabs and pivots".
September 8, 2011 at 2:05 am
1. Use the SQL Server import wizard to import all three tables into staging tables. Don't be too fussy about data types.
2. To populate table1, write an INSERT INTO...SELECT ......
September 7, 2011 at 10:23 am
GSquared (6/3/2011)
September 7, 2011 at 9:57 am
Also, it's much easier to write and test sql in SSMS then wrap it up in a function. Try this:
DECLARE @id int,
@date datetime
SET @id = ?
SET @date = ?
SELECT
a.ID,...
September 7, 2011 at 8:56 am
nidhi.ds.rapid (9/7/2011)
I am using column names instead of * still getting the error. Can you please provide me the sql.
Can you post the SQL which is causing the error you...
September 7, 2011 at 8:50 am
SELECT
pr.practice_id AS 'Practice Id',
pr.practice_name AS 'Practice Name',
v.vendor_name,
dr.doctor_id AS 'Doctor ID',
CONCAT(dr.first_name,' ',dr.middle_name,' ',dr.last_name) AS 'Doctor Name',
--CASE WHEN vfs.final_uploaded_datetime BETWEEN '2011-07-01 00:00:00' AND '2011-08-01 00:00:00' THEN ROUND(SUM(DOC.DOCUMENT_LINECOUNT),2) END AS 'july',
--CASE WHEN...
September 7, 2011 at 4:42 am
Viewing 15 posts - 6,661 through 6,675 (of 10,144 total)