Skip to content
Advertisement

Tag: sql-server

How to Join 3 Tabels in Sqlserver

I tried to join 3 tables all together but when I execute the query only the first row on the table is displayed. The table consists of many rows. How can I display multiple rows? This is the code that I tried Member table enter image description here Books table enter image description here lend table enter image description here

How to apply datediff function in select statement using case statement

I have a stored procedure to select columns of tables like this whenever I am executing this query, it isn’t showing any error but it’s not calculating the the datediff in LapsedDay column in ms SQL. Any help related to this will be greatly appreciated. Answer = NULL is not correct. Comparisons to NULL almost always return NULL. Just simplify

How to separate values with Parse name in SQL Server

I have a value (500 , 850 , 65.5) as GivenUnitPrice and I want to separate these by making separate columns by PARSENAME I have tried like this and the result is Answer Seems you want to seperate the characters by commas but Parsename() function splits by dot character( e.g. decimal number 65.5 is also splitted as if seperate integers

Advertisement