Roja-Sql Server

  • Home
  • ASP.NET
  • VB.NET
  • C#
  • JQuery
  • SQL
  • Interview Questions
  • Find me on Facebook
  • Find me on Twitter

Write a query to convert all the letters in a word to upper case

SELECT UPPER('test')

Write a query to round up the values of a number. For example even if the user enters 7.1 it should be rounded up to 8.

 

 

SELECT CEILING (7.1)
Posted by Roja
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Post Older Post Home

Popular Posts

  • What are triggers? How to invoke a trigger on demand?
                   Triggers are special kind of stored procedures that get executed automatically when an INSERT, UPDATE or DELETE operation ...
  • What is the differences in Sql server?
        Differences between varchar and nvarchar in SQL Server The broad range of data types in SQL Server can sometimes throw people throu...
  • Write query to get date in dd/mm/yyyy format?
    In SQL Server used Cast or Convert function to Format DateTime value or column into a specific date format.Both function are used to conve...
  • How can you raise custom errors from stored procedure ?
    The RAISERROR statement is used to produce an ad hoc error message or to retrieve a custom message that is stored in the sysmessages tabl...
  • Where SQL Server Actually Store Data
    SQL server by default stores the data in the files with extensions .MDF and .LDF under the path   "C:\Program Files\Microsoft SQL S...
  • Difference between Truncate And Drop
    TRUNCATE TABLE : TRUNCATE will reset any identity columns to the default seed value. This means if you have a table with an identity ...
  • Benefits of Stored Procedures
    Benefit Explanation of benefit Modular programming You can write a stored procedure once, then call it from multiple places in your app...
  • Explain the different types of joins
    There are 5 types of joins available in sql server 1) inner join 2) outer join( left outer join,Right outer join) 3) Full Join 4) Cross Joi...
  • SQL Union Operator | SQL Union ALL Operator | Difference between Union and Union ALL Operators in SQL |
    Union Operators are used to combine the result of two or more select queries into single result set. SQL UNION Operator: SQL Unio...
  • How to know how many tables contains empno as a column in a database?
    Hi Friends ,i am writing this article  to know how many tables contains empno as a column in a database?
Tweet
Share

[Get This]
by
Blogging Tips
Extension Factory Builder

About Me

My photo
Roja
Hi friends, i am Roja, Software Developer working on .NET.
View my complete profile

Translate

dutch translation

Followers

Blog Archive

  • ►  2012 (8)
    • ►  March (2)
    • ►  February (6)
  • ▼  2011 (38)
    • ▼  November (17)
      • how to get second max salary in sql
      • how to get the column names and corresponding data...
      • SQL Union Operator | SQL Union ALL Operator | Diff...
      • what is stored procedure in Sql server | what are ...
      • Different Types of Indexes in SQL Server | Differe...
      • Cursors in SQL Server
      • SQL SERVER Ranking Functions - RANK, DENSE_RANK, N...
      • How To Delete a null record
      • Delete Duplicate rows from the table.
      • How To Copy Data and Structure of One Table To Ano...
      • Write a SQL Query to find first day of month?
      • Write a query to convert all the letters in a word...
      • Find duplicate rows in a table?
      • How to know how many tables contains empno as a co...
      • How To Find age from date of birth
      • Returning String Instead of NULL:
      • How can I find the last day of the month?
    • ►  October (1)
    • ►  September (20)

Categories..........

  • Cursors (3)
  • Indexes (3)
  • Joins (5)
  • SQL Interview Questions (23)
  • SQL Server (25)
  • Stored Procedures (3)
  • Triggers (5)
© Copyright 2011 www.roja-sqlserver-blogspot.com. Picture Window theme. Powered by Blogger.