Forum Replies Created

Viewing 15 posts - 271 through 285 (of 430 total)

  • RE: Create Table from a variable

    DECLARE @FILENAME TABLE (PHONE VARCHAR(10))

  • RE: Pivot Report

    This is how I made it with syscolumns. I don't want to ype 18 columns (original table has 18 columns and 18 row report). Also it helps to sort the...

  • RE: Counting NULLs

    I mis-read the original post.

    Can you play around like this and post the results

    /* Just to analize the data */

    SELECT KeyField, * FROM dbo.EBTable WHERE KeyField IS NULL --...

  • RE: Pivot Report

    Thanks Scott. Noel gave the idea and I did something close to what you did to get my result set. Yes with xslt it would be elegant and easy. But...

  • RE: Pivot Report

    No Noel. Instead of typing 18 columns I can get the columns for category like that. I would do it in client if it is simple asp report. This needs...

  • RE: Pivot Report

    Cool. Thanks Noel.

    With 18 columns (Report will have 18 rows) that will be a big query. But if I want to use SQL to compute I have to do it.

  • RE: Counting NULLs

    Key field has value as 'NULL'.

    It is not counted as NULL. It happens when you make a wrong query to insert nulls

    SELECT COUNT(*) FROM dbo.EBTable WHERE KeyField IS NULL OR...

  • RE: getting all the distinct columns columns count

    Some one did not get the question. It was me. May be again.

    Null values are ignored in aggregate function if you want to ignore them try using this

    SELECT COUNT(DISTINCT COALESCE(ProductID,...

  • RE: convert varchar to float

    DECLARE @myCol VARCHAR(50)

    DECLARE @myNum FLOAT

    SET  @myCol = '12.50'

    SELECT @myNum = CASE WHEN ISNUMERIC(@myCol) = 1 AND @myCol <> '-' AND @myCol <> '.'  THEN CONVERT(FLOAT, @myCol) ELSE 0 END

    SELECT @myNum

    SET ...

  • RE: getting all the distinct columns columns count

    SELECT [ProductID], COUNT(*) AS Expr1 FROM [Order Details] GROUP BY [ProductID]

  • RE: Bulk Copy Operations - Record Merging

    Sure Hanslindgren it doesn't matter. I would say some places it is easy to implement than other places.

    As I mentioned the idea is...

  • RE: Matching Values

    Thanks Vasc. It works now. Let me see whether I can reproduce it in SQL.

    Recursive is way too fast than non recursive. Check 1200. Not found is the answer.

  • RE: Bulk Copy Operations - Record Merging

    Can that program check whether there are any rows in the staging tables.

    1. Create one step to check whether there are still rows in staging table that needs processing....

  • RE: Matching Values

    Vasc - I trying to make your VB non-recursive logic without sucess. Can you please post the entire form code as that I can save as .frm and work. I...

Viewing 15 posts - 271 through 285 (of 430 total)