Комментарии •

  • @kgaurav8494
    @kgaurav8494 Год назад +8

    These videos beat even the paid content. I have got few Udemy courses, paid few hundred dollars for some bootcamps, but these free videos are by far the best I came across. Thanks a lot Venkat Sir for the amazing content!!!!!!

    • @vineethrathna
      @vineethrathna 10 месяцев назад +2

      is that ok to watch this videos now

  • @TheSETJ
    @TheSETJ 6 лет назад +13

    Thank you Venkat, it's very valuable that you try to explain every and each concept so anyone can understand it. Even after 6 years, your videos are still unique and perfect.

  • @Trzbne
    @Trzbne 6 лет назад +3

    It was a bit difficult topic, but I think I comprehend it, thanks to You, Venkat. I hope you receive back all of the kindness and help you gave us in your life!

  • @justinli19901027
    @justinli19901027 8 лет назад +16

    man, this series is so good that i'm actually watching all the ads

    • @Trzbne
      @Trzbne 6 лет назад

      Me too :-) Unbelievable! Adblocker switched off

    • @trytofindareasonwhy
      @trytofindareasonwhy 4 месяца назад

      Its 2024 and these videos are still gold. I would totally donate if I could.

  • @reshminair6747
    @reshminair6747 6 лет назад +3

    Thanks a lot, Venkat for these video tutorials. :-) This is the only tutorial that is the best for SQL which I came across after browsing and listening to various video tutorials online. Really great work! Thanks once again

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot 11 лет назад +7

    Thank you very much for your interest in pragimtech. com videos. Sure, please feel free to leave a comment, and I shall respond as soon as I can. Good Luck.

  • @MrAjay2212
    @MrAjay2212 9 лет назад +6

    sir your all video tutorials are excellent., thanx for providing these video series lecture..

  • @pc3867
    @pc3867 7 лет назад +7

    In Simple words :
    Scope_Identity returns the value from the table that got affected due to the last command.
    @@identity returns the value from the table that got TRIGGERED due to the last command you gave. (In the video, The second table that got triggered due to the command you gave on the first table)
    IDENT_CURRENT('Tablename') returns the value from the table you specified.

  • @El_Capitan_215
    @El_Capitan_215 Год назад +1

    That tutorials are simply amazing!!!

  • @maryam4071
    @maryam4071 4 года назад

    I love your series. I can't find even better than this..

  • @prasanthb3660
    @prasanthb3660 11 лет назад +6

    Hi Venkat are simple and easy to learn.Do you provide similar kind of video tutorials for MSBI?

  • @vishaljhaveri6176
    @vishaljhaveri6176 2 года назад

    Thank you sir. Wonderful explanation. Was confused first, but watched twice. Then got it.

  • @sushmamc8904
    @sushmamc8904 3 года назад

    Thanks Venkat.. m happy that I have landed on the very right video to understand everything so clearly.. you have made it so interesting

  • @dhanbad890
    @dhanbad890 5 лет назад

    kudvenkat you are the best teacher that I ever found. I really love you for this 😍😍😍

  • @Adilkhan-lw5fm
    @Adilkhan-lw5fm 3 года назад

    Thank you so much sir and much love from Afghanistan, these videos and slides are so beneficial.

  • @porchmail
    @porchmail 7 лет назад +1

    Thank you for this video! I didn't know about any of these functions and used "select max(ID) " query to return user ID in my application)

  • @MrSunilkumar100
    @MrSunilkumar100 7 лет назад

    You are Awesome Venkat..!!
    Thanks for sharing your knowledge with everyone.

  • @gabrielordonez7876
    @gabrielordonez7876 4 года назад

    Excellent explanation, I do not speak English yet, but your pronunciation is very good and I have learned a lot with your courses.
    Congratulations on your excellent work

  • @Ran12380
    @Ran12380 11 лет назад

    Best SQL Server Tutorial on the net!!

  • @omaralhajali3915
    @omaralhajali3915 2 года назад

    thank you so much this is a great job

  • @tsaliki1987
    @tsaliki1987 11 лет назад

    Ya venkat sir thanq you so much once again.I will do my best to share these videos because i am going through each and every video of yours sql server playlists.All these are very clearly explained with proper English and all.Thank you once again.And if i have any doubts can i ask you sir ?

  • @sivajidronadula6526
    @sivajidronadula6526 10 лет назад +3

    chala chala thanks meeku.

  • @41abhishek
    @41abhishek 7 лет назад

    Dear Sir,
    Thanks a lot for all of your great tutorials..
    Regards
    Abhishek

  • @TheGuroguro12
    @TheGuroguro12 7 лет назад

    Thank you very much, i actually made correction into my code thanks to this video .

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot 11 лет назад

    Hi Nitya, can you please rephrase your question. If it is not an identity column, how and what are you using to auto generate the values?

  • @redash67
    @redash67 10 лет назад

    Thank you so so much Venkat you are the best...

  • @kirtim1930
    @kirtim1930 3 года назад

    Very nicely explained. Thank you!

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot 11 лет назад

    Hi, Thank you very much for taking time to give feedback. I am really glad you found these videos useful. If you want to receive email alerts, when new videos are uploaded, please subscribe to my youtube channel. May I ask you for a favour. I want these tutorials to be helpful for as many people as possible. Please free to share the link with your friends and family who you think would also benefit from them. Good Luck.

    • @gyanprakashverma6509
      @gyanprakashverma6509 7 лет назад

      kudvenkat Thank you so much .Can you please upload interview questions tricky and scenario based interview questions from 4-6 year .Net developer

  • @krzysztofs8535
    @krzysztofs8535 7 лет назад +1

    awesome videos , awesome course, Thank YOU!!!

  • @programmeseekho2795
    @programmeseekho2795 6 лет назад

    Thank You Sir
    Very Help full Video..Very Nice Sir

  • @sivababu4516
    @sivababu4516 2 года назад

    Hi venkat, i am learning daily sql from this videos. It been more understandable and flexible to learn, but i have few doubts is it still using same course or any changes happen for time being because it been 9years could you please provide me some information please

  • @nimeshambalalpatel3032
    @nimeshambalalpatel3032 3 года назад

    very nice explanation sir! my pranams!

  • @jamols09
    @jamols09 5 лет назад

    Did not just taught me about Identities but also Triggers

  • @Csharp-video-tutorialsBlogspot
    @Csharp-video-tutorialsBlogspot 11 лет назад

    Hi Nitya, if you are providing a value to be inserted into the table, then why don't you retain that value in a variable, which can be used later. I hope this answers your question.

  • @varshapathak3427
    @varshapathak3427 6 лет назад

    Venkat..You are Superb...

  • @madhurij2197
    @madhurij2197 11 лет назад

    your explanation is clear.. intresting

  • @ShahrukhKhan-jj3hx
    @ShahrukhKhan-jj3hx 7 лет назад

    thanks for this video kudvenkat(bro) ;-)
    it was very useful for me

  • @wasimbader9170
    @wasimbader9170 8 лет назад +2

    thank you, i wish u do on SPSS/SAS FULLY

  • @MANFREMONT08
    @MANFREMONT08 12 лет назад

    Thanks for nice explanation with examples

  • @NinadNakhwa
    @NinadNakhwa 3 года назад +5

    The session is the database connection. The scope is the current query or the current stored procedure.
    A situation where the scope_identity() and the @@identity functions differ, is if you have a trigger on the table. If you have a query that inserts a record, causing the trigger to insert another record somewhere, the scope_identity() function will return the identity created by the query, while the @@identity function will return the identity created by the trigger.
    So, normally you would use the scope_identity() function.

    • @saicharan4016
      @saicharan4016 2 года назад

      Thanks @Ninad for the sesssion and scope explanation , its very helpful for me

  • @safder246
    @safder246 10 лет назад

    Very nice tutorial buddy, million thanks to you

  • @aishwaryarawat6640
    @aishwaryarawat6640 5 лет назад

    Hi Venkat,
    One question, when you say for the @@IDENTITY to work for same session and ANY scope, would that mean it can sometimes also show the same result as that of SCOPE IDENTITY in the given examples?
    Or is @@Identity working on the last updated Identity value in that session across all scopes?
    Thanking in anticipation.

  • @Nitya878
    @Nitya878 11 лет назад

    Thanks nicely xplained..If it would not be an identity column then how will we retrieve the last genrated value..please reply?

  • @sathishshankar7786
    @sathishshankar7786 4 года назад

    Hi Venkat , Thanks for the detailed explanation . I have one doubt , how the scope identity knows for which table the user need to know the last identity number .

  • @Nitya878
    @Nitya878 11 лет назад

    Very Very Thanx for your respond.Suppose I am entering data into the table manually rather than auto generating the column value and if i want to access the last value of that particular column then how to retrieve that?

  • @itsforall7959
    @itsforall7959 6 лет назад

    Hi venkat, i got a question like this .. I need to inesert row from 1 to 11 after that 19th row,after that the sequence contiunue like normal means 20,21....and so on.
    For above question i got something like this, identity(1,1) i will give till 11 i will insert after that make "Insert_Identity" on and i wll insert 19th recored. But after this i want row should start from 20 how can i get 20 . Because last Identity generated column value will be 11 right. So i want help in this...Thank U!! for ur great teaching...

  • @kapamagicman
    @kapamagicman 11 лет назад

    Very detailed. Got a bit complicated, but that's fine. Keep it up!

  • @ibrahimsayed3933
    @ibrahimsayed3933 7 лет назад

    Venkat, Thanks a million but I do not understand what are you mean of Scope

  • @CodeRealtime
    @CodeRealtime 11 лет назад

    Hi Venkat ,
    we will be very thankful to you .. if you show us how to debug a complex procedure using
    sql server debugger .

  • @hmvartak
    @hmvartak 9 лет назад +1

    One more way is using output clause.
    Insert into test1 output inserted.ID values ('X')
    This query will return you last inserted id. No need to execute two separate queries for insert & retrieval.

  • @koesys1
    @koesys1 7 лет назад

    Hi Venkat, that's an amazing work, thank you very much.
    Also, I went on your website, et I can't click on any "View Contents" in the DVD page. I have Firefox and Adblock.

  • @tonyhaddad1088
    @tonyhaddad1088 6 лет назад

    Thank you for this valuable video.
    If the Id or autonumber field was not the primary key.
    How do we get it.
    I tried many time but failed

  • @nickole4458
    @nickole4458 8 лет назад +3

    Hi, still confused about "across any scope" for @@identity, can you explain a little more? thanks!

    • @malharjajoo7393
      @malharjajoo7393 8 лет назад

      yeah , same here

    • @bboyhard97
      @bboyhard97 8 лет назад

      As far as i understood: @@identity generates the last generated identity in the same database. scope_identity generates the last generated identity in the same table (the table your last command had used)

    • @bboyhard97
      @bboyhard97 8 лет назад

      don't quote me on that

    • @malharjajoo7393
      @malharjajoo7393 8 лет назад

      Ok
      1) Scope_identity will return identity values generated within the same stored proc.
      2)@@identity will return values generated outside the stored proc also ( best example is the one with trigger in the video ) Extra information - Scope_Identity is more commonly used than @@identity

    • @rolstandsouza6470
      @rolstandsouza6470 7 лет назад

      actually its like when you execute SCOPE_IDENTITY it will show only the affected row in that table and when you execute @@IDENTITY it will show the last affected row of another table which was affected due to last insert statement [ correct me if i am wrong ]

  • @mohamedbitar4607
    @mohamedbitar4607 2 года назад

    Hello Mr.Venkat
    ScopeIdentity :return last identity value in scope and session but when I was created the trigger last identity value is when trigger fired but the value that return is last identity value in first table which have a trigger.
    Can you calrify please?

  • @ujjwalsharma8524
    @ujjwalsharma8524 7 лет назад

    I'm watching your videos and I found them too good for studies but the 8th part of SQL server, I didn't get it. There is a difficulty in understanding the scope, ident from the videos. please help me sir.

  • @gernotpokorny6766
    @gernotpokorny6766 6 лет назад

    Are you sure that one query-window = One Session or is this just for demonstration purposes?

  • @sLiqka.
    @sLiqka. 8 лет назад

    You're awesome .

  • @stutitehri993
    @stutitehri993 10 лет назад

    which one is better scope_identity or current_ident

  • @jyotimakonati965
    @jyotimakonati965 3 года назад

    Thanks sir

  • @piyasidey2117
    @piyasidey2117 8 лет назад

    Thank you very much sir..

  • @tahir1053
    @tahir1053 8 лет назад +2

    I have a doubt regarding @@IDENTITY function. Eg: If we extend the example shown in the video, that is if our trigger inserts a row in two different tables say Test2 and Test3. In that case, what will @@IDENTITY return?

    • @72sh
      @72sh 8 лет назад +1

      The last Trigger which u create will be considered by @@IDENTITY func.
      Ex: First u created Trigger 1 (some value inserted in Table 2 if we insert in Table 1)and then you created Trigger 2 (some value inserted in Table 3 if we insert in Table 1).
      The Last created Trigger which is Trigger T2 as it will be Technically below the Trigger 1 in terms of lines in code.
      Now if we insert in Table 1, Three rows wil be effected and if u run @@IDENTITY, it will show the Table 3's value.

  • @JonathanIsmaila
    @JonathanIsmaila 4 года назад

    Please how can I return the identity column and use as a variable e.g. insert a record into the products table and return the product id (set as identity column); then pass the new product id inserted in products table to stock entry table?

  • @ebadkhan7609
    @ebadkhan7609 5 лет назад

    I’m facing quite difficulty identity and default constant part basically I’m not understand these lecture please help me what should i do ?

  • @pramodmaurya6610
    @pramodmaurya6610 6 лет назад

    Thanks a lot sir

  • @nojka7a953
    @nojka7a953 10 лет назад

    nitya, you can order DESC the identity column and then from top(1) result to see the value of this column

  • @selimreza7163
    @selimreza7163 7 лет назад

    Nice one :)

  • @venkatsm76
    @venkatsm76 11 лет назад

    Thanks Venkat

  • @venkateshchinthakindi5384
    @venkateshchinthakindi5384 7 лет назад

    thanks a lot sir
    please can you explain difference between DBCC CHECKIDENT ( table_name )
    and
    DBCC CHECKIDENT ( table_name, RESEED )

  • @harshalpatel555
    @harshalpatel555 3 года назад +1

    What is mean by scope ?

  • @fitnessmotivation9171
    @fitnessmotivation9171 4 года назад +1

    why we need last generated identity column value Boss?

  • @soniasadeque5950
    @soniasadeque5950 7 лет назад

    what is scope Venkat? thanks Sonia

  • @ctaproductions2272
    @ctaproductions2272 5 лет назад

    For which table scope_identity() gives max identity value?

  • @khajaaleem5927
    @khajaaleem5927 11 лет назад

    Hi Venkat, i have 10 records in table and when i use DBCC then it will be reset to 0 then when i try to enter new record it is error the statement have been terminated because of deplication, how to overcome it again to move on

  • @raphaelbaker1821
    @raphaelbaker1821 7 лет назад

    okay.. but how to do an insert using the last identity at another table to make a relation?
    what's the propose of this video?

  • @khajaaleem5927
    @khajaaleem5927 11 лет назад

    previously i created tblPerson1 with 9 records and now with Test1 i created 2 records but when i use SCOPE_IDENTITY() its showing 2 not 9 why??

  • @Nitya878
    @Nitya878 11 лет назад

    Thanx sir..

  • @Phoenix-wr6rn
    @Phoenix-wr6rn Год назад

    I have a doubt, at 10:37 the result of SCOPE_IDENTITY should be 3 right but it showed the output as 2. Someone please clear my doubt

  • @hehe099
    @hehe099 9 лет назад

    When I try to create a table via syntax ( Create Table Test1) it shows me "Msg 102, Level 15, State 1, Line 1
    Incorrect syntax near 'Test1'." ....How can this be a syntax error?

  • @SriRamDasariChandra
    @SriRamDasariChandra 7 лет назад

    If the session expires, then we are getting a Null value for the scope_identity and @@identity function. Is there a solution for this?

    • @radhakrishnagedela8993
      @radhakrishnagedela8993 4 года назад

      The table must have Identity column
      Ex:
      create table Test1 (id int identity, Name nvarchar(20))

  • @tahminaanondi5096
    @tahminaanondi5096 4 года назад

    In real life where we use scope identity ?

  • @poojachopra9186
    @poojachopra9186 7 лет назад +1

    What exactly scope means in this context

    • @Trzbne
      @Trzbne 6 лет назад +5

      Scope is the range of effectiveness of commands. So if you tell SQL: INSERT INTO sample1, then its scope is sample1, because it affects only on sample1.
      But the triggers reaches for sample2, too, so the trigger goes into another scope.
      Scope is a fence. SCOPE_IDENTITY is too short to see over the fence, @@IDENTITY is enough tall to see over the fence to the neighbor's garden, IDENT_CURRENT sits on the rooftop and sees both of the gardens (sampe1 and sample2), but is interested only in one of them.

  • @juantutri3228
    @juantutri3228 9 лет назад

    can you help me? how can i separate 1 column result the negative into positive number and put it in different column?
    like for example i have a result sum of 2 different column
    10000
    -2000
    9983
    20394
    9323232
    -2222
    like that? how to i separate the negative and the positive? and get the sum of it?

    • @sandeepguptadevadula8500
      @sandeepguptadevadula8500 8 лет назад

      +Ekaj Zerep
      This query will separate the positive and the negative number into separate columns
      select test_id2 as A1, null as A2 from identity_test_tab where test_id2>0
      union
      select null as A1,test_id2 as A2 from identity_test_tab where test_id2<0
      This query will get you the sum
      select (select sum(test_id2) from identity_test_tab where test_id2>0) as test_id_pos,(select sum(test_id2) from identity_test_tab where test_id2<0) as test_id_neg from dual

  • @harpreets7863
    @harpreets7863 6 лет назад

    I get NULL when I execute
    select SCOPE_IDENTITY()
    select @@IDENTITY
    Could somebody please explain why?

  • @archrodney
    @archrodney 9 лет назад +3

    That's cool but what's the purpose of getting it?

    • @malharjajoo7393
      @malharjajoo7393 8 лет назад +1

      He just mentioned it at the end . It can be used to get the Id for the customer ( since the database has internally managed incrementing the Identity coloumn. )

  • @jitendrachaturvedi8612
    @jitendrachaturvedi8612 6 лет назад

    how to change persistentConnections confg's value to true in phpmydadmin

  • @justinli19901027
    @justinli19901027 8 лет назад

    how to do auto-completion in SSMS?

  • @abdallahbedir32
    @abdallahbedir32 8 лет назад

    why it returns null with me !!

    • @radhakrishnagedela8993
      @radhakrishnagedela8993 4 года назад

      The table must have Identity column
      Ex:
      create table Test1 (id int identity, Name nvarchar(20))

  • @saurbhkumar570
    @saurbhkumar570 4 года назад

    could not get the difference between all 3 properly!!!!

  • @shashidulu
    @shashidulu 4 года назад

    IT doesnot work I am getting null value waste example

  • @malharjajoo7393
    @malharjajoo7393 8 лет назад +1

    I'm getting only NULL values in the result

    • @abdallahbedir32
      @abdallahbedir32 8 лет назад

      yeah that's happen with me too !!

    • @SriRamDasariChandra
      @SriRamDasariChandra 7 лет назад

      You probably are disconnected from the session. The same happened to me when I closed by laptop. It asked me to reconnect to the database.

    • @FromBharatNKH
      @FromBharatNKH 5 лет назад

      May be not entered any values on table..

  • @srinu_A4
    @srinu_A4 3 года назад

    I can't understand the explanation. We want some more clear and slow explanation

  • @BigyetiTechnologies
    @BigyetiTechnologies 9 лет назад +2

    But why?

    •  6 лет назад

      Exactly!

  • @khanmahwash3323
    @khanmahwash3323 3 года назад

    IT SHOWS NULL WHILE I RUN IT

  • @knowledgemore4279
    @knowledgemore4279 7 лет назад

    Is there any sample project in asp.net mvc , please provide to learn .

  • @malharjajoo7393
    @malharjajoo7393 8 лет назад

    You did not clearly mention what you mean by a scope.

    • @72sh
      @72sh 8 лет назад +3

      The scope is the current query or the current stored procedure.

    • @malharjajoo7393
      @malharjajoo7393 8 лет назад

      thanks , now I understand

  • @nandanavarevinod4684
    @nandanavarevinod4684 3 года назад

    Your explanation is good but this videos are definitely not for beginner's and you choose the wrong way of teaching which is, each and every video is connected to another which is very bad.
    you are good for only experienced candidates.

  • @ianprado1488
    @ianprado1488 7 лет назад

    This was confusing...

  • @tsaliki1987
    @tsaliki1987 11 лет назад

    Thank you so much for the nice explanation along with examples