Search:

Type: Posts; User: nageshkota; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. SQL Re: diffrence between delete with commit and truct table

    Delete will delete the records one by one where as truncate will delete all the records at a time. Also you can roll back the records if you use the delete statement but not when you use truncate...
  2. Answers
    9
    Views
    4,923

    SQL Re: Execute 3 Commit 1

    Hi Satheesh,

    In SQL server 2005, By default auto commit is on. So if you want to use the commit transaction, then you must have to use the begin and end transactions even to use the roll back.
  3. Answers
    5
    Views
    5,479

    SQL Server - Re: Hash Tables problem

    Yes, Hash table means a temp table.
  4. Answers
    4
    Views
    6,763

    SQL Server - Re: deleting constraints in table

    Hi Saritha,

    You use the fallowing query to see the total information of the table. from that you can use to delete or drop the primary or forign keys.

    select * from sysobjects where type='u'...
  5. Answers
    5
    Views
    5,479

    SQL Server - Re: Hash Tables problem

    Hi Pooja,

    We have 2 types of Hash tables, they are local and global
    Local is used as #tablename, which is having the scope with in the SP's or Functions or in Programs, Out of this scope you can...
  6. Answers
    7
    Views
    17,214

    SQL Server - Re: update to null value column

    Prasanth,

    u r right u can assign to null value as u given in the sample query, but u can't use the "=" in the where clause, in that case you have to use only "IS".
  7. Answers
    7
    Views
    17,214

    SQL Server - Re: update to null value column

    Priya,

    In the database one null value never equals to the another null value, so you can't use "=" for null check. You have to use "IS Null" like that...
  8. Answers
    5
    Views
    10,280

    SQL Server - Re: To get previous month names

    Sorry boreddy u cant use month is quotes.

    Use
    select datename(month, dateadd(month,-1,getdate())), datename(month,
    dateadd(month,-2,getdate())),datename(month, dateadd(month,-3,getdate()))
  9. Answers
    7
    Views
    7,686

    SQL Server - Re: How to get 6th heghest salary?

    Hi jrameshvjr,

    your query will give the only one record, if there are many number of employees holding the same salary then it won't be applicable..
  10. Answers
    7
    Views
    7,686

    SQL Server - Re: How to get 6th heghest salary?

    You can use the Query as fallowed

    SELECT * FROM <TABLENAME> T1 WHERE n=
    (SELECT COUNT(DISTINCT <COLUMNNAME>) FROM <TABLENAME> T2 WHERE T1.<COLUMNNAME> <=T1.<COLUMNNAME>)

    where 'n' is the nth...
  11. Thread: Issue

    by nageshkota
    Answers
    5
    Views
    3,924

    SQL Server - Re: Issue

    Hi mobin,
    It is possible to create more than one clustred index on a table.
    so You answer is wrong...
  12. SQL Re: difference between self join and correlated queries

    Self join is joining the one table to itself, but when you come to the corealted queries we can use the different tables and in the corelated queries the inner query executes first, but it will...
  13. Answers
    5
    Views
    13,050

    SQL Re: Difference between LIKE and = operator

    If you know the exact value to check then you can use the operator '=' else you can use like operator if some part in the search condition known.

    If you know the exact value then better to use '='...
  14. Thread: doubts

    by nageshkota
    Answers
    2
    Views
    3,494

    SQL Re: doubts

    Hi Kadhar,

    Your question is not clear, explain some more.
  15. Answers
    16
    Views
    30,305

    SQL Re: Employee and manager name in single query

    Hi,

    This Decode function will work in the Oracle only, but if we use the case then it will work for the all.
  16. Answers
    5
    Views
    14,225

    SQL Re: SQL server queries

    You can use the fallowing statement

    select * from tablename where the reference conditions
  17. Answers
    20
    Views
    36,968

    SQL Re: Insert new column in the middle of a table

    It is not possible to insert a column in the middle of the table, But there is one way to do that in Oracle and SQL Server also. you can insert the column at the end and create a temp table in the...
  18. SQL Re: What is the difference between self join and outer join?

    Hi,

    The Self Join is the concept joining the same table to it self, in that we use the alias concept to differ the tables.

    In the Outer join we can use 3 types left, right or full, we can use...
  19. Thread: subquery

    by nageshkota
    Answers
    5
    Views
    3,885

    SQL Re: subquery

    Hi,

    Guys did you checked the Code, Is this Code works?
    In my knowledge it will fail.
  20. Thread: Issue

    by nageshkota
    Answers
    5
    Views
    3,924

    SQL Server - Issue

    If we create a primary key then automatically it creates an unique clusterd index, but for any table there is only one clusterd index is allowed, If i want to create an uniue clusterd index on other...
  21. SQL Server - Re: How can we write the columns set as rows set?

    If we know the columns set then only we can use the case statement, if did not know the column set then what is the way to get?
  22. SQL Server - Re: Create, Update or Delete a Table in function

    Y we can't we use that in the function
  23. Answers
    7
    Views
    4,985

    SQL Server - Re: interview question

    Hai,

    It is very much better to use the sub queries.
    If we use the views it is nested upto 32 levels only..
    If it crossed you may get errors.
  24. SQL Server - Create, Update or Delete a Table in function

    Is it possible for us to create a table or update a table or delete a table in the function?
  25. SQL Server - How can we delete the duplicate data from a database table?

    To delete the duplicate data we may use the temporory tables, but with out using any teporory tables can we delete the duplicated data, if how it is possible?
Results 1 to 25 of 31
Page 1 of 2 1 2
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact