Forum Replies Created

Viewing 15 posts - 1 through 15 (of 103 total)

  • RE: Update values like Vlookup

    Hi,

    Yes that solves the problem. yes ID is unique identifier and Non Null

  • RE: CASE Statment Help

    Hi what was Your solution? It would be good if you can share one.

    I may have similar situation in future.

    Thanks

  • RE: Update values like Vlookup

    IF SMINO = ID then I want to update IMEI number of that raw to update where SIMNo matched.

    ex. Raw 1 & 2 's IMEI number should be updated...

  • RE: COUNT, COALESCE, ISNULL, DISTINCT

    Phew that took me about 10 minutes to do calculation on my mind.

    Great question.

  • RE: Duplicate Rows

    Or if your duplicate records keep coming via user input then you can create view with select distinct.

  • RE: Nested Transactions

    Great question

    It's easy to get lost between Nested Transactions specailly when we use same naming for SAVE point & TRAN.

    +1

  • RE: Round up the values

    SELECT CONVERT(INT,ROUND(<YourColumnName>,0)) FROM <yourtable>

  • RE: WHILE LOOP alternative

    If you try grouping order id and partkey with count(*) that should give you number of unique combination of order id and part key.

    If you want 1 2 3 next...

  • RE: ISNUMERIC(varchar)

    Good question. Any one know why it returns 1 for some/most of special characters?

  • RE: sales by product category

    Following query will get you result for

    Return the number of sales by product category where the average recommended price is

    R10 or more

    SELECT COUNT(S.SalesID)

    FROM tblSales AS s

    INNER JOIN tblProducts...

  • RE: Order of Execution

    Good one should have included DISTINCT to make it more confusing.

  • RE: Like query from another table

    Thanks All,

    It works. Yes all the codes are separated by spaces at this stage but in future they may appear with other delimiter.

    I was trying like '%[b.billing_code]%' and it...

  • RE: View 7

    Oh Man how did I got this wrong I read this reference article not so long ago !! (a month may be) Time to refresh my knowledge....

    Great question Ron....

  • RE: Self Join

    vinu512 (5/7/2012)


    This might work:

    Select * From Ex

    Where DEPTNO In (Select DEPTNO From Ex Where ENAME = 'SCOTT')

    Edit:

    If you Don't want Scott in the result set then you can edit the...

  • RE: What is the logical Processing order of select statement

    Hmmm knew the order but didn't know that we can't use alias in Where clause.

Viewing 15 posts - 1 through 15 (of 103 total)