Forum Replies Created

Viewing 15 posts - 211 through 225 (of 455 total)

  • RE: 2 SQL basic questions

    You need to follow the steps to restore your database.

    1. Restore your database from the most recent FullBackUp File.

    2. Apply the differential backups that were taken after the most recent...

  • RE: CASE in WHERE Statement

    With '<' condition Mark's solution should work perfect for your requirement.

    If you want to go with the IN Clause this may work for you..

    DECLARE @SpreadSelect as int

    SELECT @SpreadSelect = 0

    SELECT...

  • RE: Foreign key from part of a primary key

    What is that you are trying to gain out of this Foreign Key Relationship?

     

  • RE: Indexing

    What is the purpose of your index, do you want to create a Clustered Index/Non Clustered Index? Is it on a single column or multiple columns? What is your basic...

  • RE: Adding only Visible rows

    INSTEAD of applying SUM on your aggreate item (100$) in your example, why don't you SUM up the line item column (25$) in your aggreate expression? Could be I am...

  • RE: FILTER ANY COLUMN IN REPORT

     I believe there is a typo in the above post.COAELESCE should be replaced with COALESCE.

     

  • RE: Dynamically Force a page break on column (n) of a Matrix?

    As far as my knowledge goes, manipulating the page breaks dynamically at the runtime is not possible in SSRS.

     

  • RE: Manipulate rows in a especific order

    There is no specific keyword or function in SQL Server that will help you with your desired output, only way out would be have an additional column in your table...

  • RE: Datetime Issue

    `Try this

    SELECT * FROM Sales WHERE status = 8

    AND DATEADD(dd,DATEDIFF(dd,0,shipdate),0) = DATEADD(dd,DATEDIFF(dd,0,GETDATE()),0)

    First check if status =8 is returning any rows without date filter.

     

  • RE: Running Totals

    In the above example for Scope = Nothing, you may want to pass the Group expression for which you want to find the Running Totals.

     

  • RE: Replace column values

    If you have defined the column as Datatime Datatype and if you are seeing NULL values in the column then it should be returning some values for the query posted...

  • RE: Having a not so bright moment

    I completely Concur with Jeff's solution. Its better to avoid conversions and go with Jeff's solution.

     

  • RE: Having a not so bright moment

    Or precisely if you want it in Datetime datatype

    Select CAST(convert(VARCHAR(10),Getdate(),(121)) AS SMALLDATETIME)

     

  • RE: Having a not so bright moment

    Select convert(VARCHAR(10),Getdate(),(121))

     

  • RE: Having a not so bright moment

    Try this

    Select convert(smalldatetime,Getdate(),(110))

     

Viewing 15 posts - 211 through 225 (of 455 total)