Forum Replies Created

Viewing 15 posts - 4,861 through 4,875 (of 15,381 total)

  • RE: Where clause on multiple columns?

    Kevlarmpowered (5/16/2014)


    Right now I have to do something like this and it is time consuming every time I have to query a specific table...

    SELECT lots_of_columns

    FROM table

    WHERE (column5 = '1'...

  • RE: Where clause on multiple columns?

    Kevlarmpowered (5/16/2014)


    http://www.sqlservercentral.com/Forums/Topic1571755-3077-1.aspx

    (it was a seat to keyboard interface error over here) :blink:

    hehe no problem. Will take a look at your other thread.

  • RE: Where clause on multiple columns?

    Kevlarmpowered (5/16/2014)


    Right now I have to do something like this and it is time consuming every time I have to query a specific table...

    SELECT

    I think you left out most of...

  • RE: Moving Queries for access to SQL

    jdasilva (5/15/2014)


    Sean Lange (5/15/2014)


    jdasilva (5/15/2014)


    ok. well lets go back to the original stuff Sean posted. He used 2 delcarations that don't work (user-defined type not defined):

    dim parm as...

  • RE: create a table using the value of a variable

    This is nothing like DDL or Sample data. The idea here is that you post create table statements and insert statements so we can recreate the table(s) in our...

  • RE: query

    ramyours2003 (5/15/2014)


    is the information provided by executing the query is right ? because i found connections are existing on the datbase which i need to prepare the report .as per...

  • RE: Moving Queries for access to SQL

    jdasilva (5/15/2014)


    ok. well lets go back to the original stuff Sean posted. He used 2 delcarations that don't work (user-defined type not defined):

    dim parm as ADODB.Parameter

    dim cmd as...

  • RE: query

    ramyours2003 (5/15/2014)


    thanks for providing the query i need to know what is status 9 mean when i execute the query?

    Are you familiar with BOL (Books Online)? It is...

  • RE: query

    ramyours2003 (5/15/2014)


    i need to prepare a report that shows last user access on a particular database and the account that is a service account or user account , can...

  • RE: Dynamic SQL

    You can use OUTPUT with dynamic sql too. No need for a temp table. I took Calvo's example and changed it so it uses OUTPUT parameters. The other change I...

  • RE: COUNT items within a result set

    JJR333 (5/15/2014)


    I want to add a column to this query which displays the number of times each MwID is present in the result set.

    This number is needed to divide into...

  • RE: JOIN in subquery

    dcwilson2009 (5/15/2014)


    Thanks for the reply. My query gives a single row. Yours gives me multiple rows.

    You only get one row because there is only one row with the max...

  • RE: JOIN in subquery

    So you only want to get the ProcDate and DayKey for the row with the highest DayKey?

    How about this?

    SELECT top 1 ProcDate, DayKey

    FROM dbo.MyTable a

    WHERE ExtractType = 'D'

    order...

  • RE: JOIN in subquery

    dcwilson2009 (5/15/2014)


    How would I convert this query to use a JOIN in the subquery:

    SELECT ProcDate , MAX(b.DayKey) DayKey

    FROM dbo.MyTable a ,

    ...

  • RE: Tracking down sytax error in INSERT statement

    alicesql (5/15/2014)


    I'm having some trouble understanding how the CTE coding works.

    A cte is just an inline view. You should read up on them because they are very powerful and you...

Viewing 15 posts - 4,861 through 4,875 (of 15,381 total)