Software Nuggets
Software Nuggets
  • 441
  • 552 261
Node.js PostgreSQL Tutorial: Calling Functions & Database Operations
Node.js PostgreSQL Tutorial: Calling Functions & Database Operations
Learn how to integrate Node.js with PostgreSQL using the pg package. Discover essential tips for establishing connections, executing SQL operations, and calling PostgreSQL functions from your Node.js applications. Perfect for programmers diving into database-driven web development!"
Master essential Node.js database operations with PostgreSQL, including SQL queries, function calls, and seamless pg package integration.
Table of Contents
----------------------------
00:00 Hey Team
00:03 GitHub - where is the source for this video?
00:30 PostgreSQL version overview
00:43 Solution - Create Table "Ledger"
02:01 Create Function: insert_crypto_into_ledger
02:26 Create Function: getCurrentPrice
03:40 Create Function: get_all_prices
04:44 Test Postgresql function with just wrote
06:25 Node.js code review
10:48 Execute node.js in Windows Console window
how to use node.js with postgres,
node.js pg package
how to called function in postgresql from node.js,
node.js postgresql connection
pg.client
node-postgres,
node-database select,
node js database insert,
node with sql
postgresql with node js
postgres with node
#softwarenuggets @SoftwareNuggets #postgres,#postgresql,
Переглядів: 28

Відео

ADD two (Decimal, Hexadecimal, Octal, Binary) using the CARRY Technique.
Переглядів 35День тому
Base addition. Number system math. Carry technique. Universal addition method for (decimal, hex, octal, and binary). Hexadecimal add two numbers tutorial. @softwareNuggets, #softwareNuggets, #addHex, #addBinary, #addOctal Table Of Contents 00:00 Introduction "Hey Team" 00:03 Overview, the four questions 00:30 Addition - Base 10 - Decimal 01:14 Addition - Base 16 - Hexadecimal 02:47 Addition - B...
HackerRank: Solution for Symmetric Pairs problem for SQL Server.
Переглядів 8221 день тому
HackerRank Challenge HackerRank Medium Challenge HackerRank MS SQL Server Challenge HackerRank Challenge: Symmetric Pairs Solve a HackerRank Challenge using MS SQL code. solve X1 = Y2 and X2 = Y1 SQL joins Common Table Expressions (CTEs) #softwarenuggets , @SoftwareNuggets
Command Line Calculator - A Calculator that converts Infix to Postfix using C# .Net 8
Переглядів 46Місяць тому
Command Line Calculator Infix to postfix calculator. Using a command window, DOS window or Linux Shell Window, provide users a command line calculator that performs (add, subtract, multiply, divide, modulos, incrementor, bit shifting) Using .Net 8 Core, a program that will allow a user to perform math expressions from the command line. The program take an infix notation expression, converts it ...
How-To Convert Infix to Postfix Notation. Learn with Three Examples
Переглядів 43Місяць тому
Step-by-step infix to postfix notation. HowTo convert infix notation to postfix notation. Use a basic flow chart type learning experience to convert an infix expression into the postfix notation. How to use a RPN calculator to perform a postfix expression. Reverse Polish Notation (RPN) Infix to postfix flow chart. Postfix calculation examples. infix to postfix converter. three examples to conve...
Create A Tkinter Listbox In Python: Learn To Build A Reusable Component
Переглядів 563Місяць тому
Build a List Control using tkinter tkinter listbox control with add, update,delete functionality tkinter listbox double click event how to use a selected_index on a listbox in tkinter form handling list operations in tkinter how to manager colors on a tkinter app class object that can be used to collect a collection of things, producing a list of strings. #softwarenuggets @SoftwareNuggets
HackerRank: Solution for Interviews, a problem for SQL Server.
Переглядів 612 місяці тому
HackerRank Challenge HackerRank Hard Challenge HackerRank MS SQL Server Challenge HackerRank Challenge: Interviews Solve a HackerRank Challenge using SQL code. This Interviews challenge has 5 tables that must be joined. SQL joins Common Table Expressions (CTEs) SQL metrics #softwarenuggets , @SoftwareNuggets
PostgreSQL: Write a Dynamic Function using ALTER TABLE with JSON parameter!
Переглядів 942 місяці тому
How to write a function that will execute the ALTER TABLE command on a POSTGRESQL database. postgresql programming protgresql function alter table command #softwareNuggets, @softwareNuggets
Learn Python,Tkinter and MongoDB to build a Movie Search App with Posters!
Переглядів 1742 місяці тому
Tkinter MongoDB integration tutorial. Python movie search app with Tkinter tutorial. Python GUI app development tutorial with database integration. Tkinter Treeview widget tutorial for Python applications. Python image display in Tkinter tutorial. Tkinter PIL (Pillow) image handling tutorial. Python MongoDB integration for GUI applications tutorial. Python movie search app development guide. Py...
Calling Extern Printf() In Assembly Code: Code up a Small app to learn the steps!
Переглядів 1653 місяці тому
How to print a message in Assembly Language using the PRINTF() function. assembly language call printf. Calling the printf function from within your assembly program. How to call a standard c function printf() using assembly language program. Learn the calling order of the parameters of printf() function. use Extern Printf() in assembly language code. @softwareNuggets, #softwareNuggets
ASM Language: How to Sum the Digits from 8-bit Byte Array - Intel-Syntax Lesson 7. Assembly.
Переглядів 573 місяці тому
Loop over a Byte Array and sum the digits in Assembly Language - Intel-Syntax. ASM Language. How to use the AL, BL, CL and DL registers. How to read a value from a (db) databyte array. How do you iterate over elements of an array? How are loops implemented in Assembly? Iterate through arrays (8 bit) arrays in Assembly. Looping through arrays how to access array elements in assembly adding array...
HackerRank: How to Master SQL Joins and Grouping for Advanced Data Analysis. 🚀
Переглядів 493 місяці тому
HackerRank: How to Master SQL Joins and Grouping for Advanced Data Analysis. 🚀
PostgreSQL: How to write a Function to validate an Email Address using Regex.
Переглядів 1314 місяці тому
PostgreSQL: How to write a Function to validate an Email Address using Regex.
ASM Language: How to get input (sys_read) from the user in Assembly. Lesson 6. Intel-Syntax.
Переглядів 1034 місяці тому
ASM Language: How to get input (sys_read) from the user in Assembly. Lesson 6. Intel-Syntax.
HackerRank: How to Loop over Binary Tree Nodes in SQL Server.
Переглядів 804 місяці тому
HackerRank: How to Loop over Binary Tree Nodes in SQL Server.
ASM Language: Learn the JUMP assembly language instructions. Lesson 5. Intel-Syntax.
Переглядів 2695 місяців тому
ASM Language: Learn the JUMP assembly language instructions. Lesson 5. Intel-Syntax.
PostgresSQL : How to Parse XML with Attributes. Insert into a Table.
Переглядів 2975 місяців тому
PostgresSQL : How to Parse XML with Attributes. Insert into a Table.
XML Parsing in PostgreSQL: Utilizing XPath for Variable Extraction for Table Insertion.
Переглядів 7235 місяців тому
XML Parsing in PostgreSQL: Utilizing XPath for Variable Extraction for Table Insertion.
Lesson 4 - Calculate area of rectangle in Assembly Language. Area = Width * Length. Using IMUL
Переглядів 2725 місяців тому
Lesson 4 - Calculate area of rectangle in Assembly Language. Area = Width * Length. Using IMUL
ASM Language: How to Call an Assembly Language Subroutine. Lesson 3. Intel-Syntax.
Переглядів 985 місяців тому
ASM Language: How to Call an Assembly Language Subroutine. Lesson 3. Intel-Syntax.
Geography Datatype: Calculate Distances with STDistance - Miles, KM, Meters
Переглядів 755 місяців тому
Geography Datatype: Calculate Distances with STDistance - Miles, KM, Meters
C Programming: File Handling made easy with open(), close(), read(), write() and lseek().
Переглядів 1505 місяців тому
C Programming: File Handling made easy with open(), close(), read(), write() and lseek().
How to Subtract Binary Numbers the easy way, step-by-step.
Переглядів 9256 місяців тому
How to Subtract Binary Numbers the easy way, step-by-step.
Lesson_2 : Hello World x64 in assembly language using myCompiler.io web site.
Переглядів 1266 місяців тому
Lesson_2 : Hello World x64 in assembly language using myCompiler.io web site.
Lesson_1 : First program in 8086 x64 Assembly Language. ASM x64. syscall_64.tbl. syscall.h
Переглядів 2756 місяців тому
Lesson_1 : First program in 8086 x64 Assembly Language. ASM x64. syscall_64.tbl. syscall.h
How to ADD two Binary Numbers (base-2), step-by-step.
Переглядів 4086 місяців тому
How to ADD two Binary Numbers (base-2), step-by-step.
How to Find Prime Factors: Python Function for Number Factorization.
Переглядів 626 місяців тому
How to Find Prime Factors: Python Function for Number Factorization.
Python Prime Number Generator: Sieve of Eratosthenes Tutorial
Переглядів 1537 місяців тому
Python Prime Number Generator: Sieve of Eratosthenes Tutorial
Write a PostgreSQL Function to Sort an Array Object using an ENUM Type to determine the sort order.
Переглядів 1107 місяців тому
Write a PostgreSQL Function to Sort an Array Object using an ENUM Type to determine the sort order.
PostgreSQL - Create B-TREE Index on JSONB key.
Переглядів 3317 місяців тому
PostgreSQL - Create B-TREE Index on JSONB key.

КОМЕНТАРІ

  • @LekkyDev
    @LekkyDev День тому

    Wow you promised and you did it. You have made my day! This is the most helpful nodejs plpgsql combo i have ever seen on the internet. This is truly amazing. Thank you so so much Software Nuggets.

    • @SoftwareNuggets
      @SoftwareNuggets День тому

      Hey @LekkyDev, glad to hear this video was useful. Thanks for letting me be a small part of your programming journey.

  • @Sanketjoice
    @Sanketjoice 2 дні тому

    Thank you so much! This is easiert tutorial ever and how every tutorial should be🫡

    • @SoftwareNuggets
      @SoftwareNuggets 2 дні тому

      Very happy to read your comment. Thanks!

    • @Sanketjoice
      @Sanketjoice 2 дні тому

      @@SoftwareNuggetswelcome! I was wondering if you could help me out with a college project of mine, i m in my last semester and really stuck in an issue. Im willing to pay if you finish the job! 😄

    • @SoftwareNuggets
      @SoftwareNuggets День тому

      #Sanketjoice. Thanks for reaching out. I am willing to help you with your college project. I am not available for work for hire. If you'd like for me to help, please explain the problem you need help solving. send to my email address: softwareNugget65@gmail.com

  • @LekkyDev
    @LekkyDev 3 дні тому

    Can you use postgresql functions with NodeJs? Why are there no tutorials about how to do that? Could you pls make a tutorial to demonstrate how to do that?

    • @SoftwareNuggets
      @SoftwareNuggets 3 дні тому

      Hey @LekkyDev, I will have a video out tonight, however, I could just upload the source to this problem to my github account earlier if you'd like. Please let me know. If no response, I'll just publish video ASAP.

    • @LekkyDev
      @LekkyDev 2 дні тому

      @@SoftwareNuggets That would be great if you could upload the source but videos are always better because you get to see the build up as well. I really struggle to find any tutorial about plpgsql with nodejs. Thanks for reaching back and looking forward to the source and the video.

    • @SoftwareNuggets
      @SoftwareNuggets День тому

      @LekkyDev, I will upload the video at 7pm tonight. Look forward to hearing comments from you.

    • @LekkyDev
      @LekkyDev День тому

      @@SoftwareNuggets Wow thanks in advance. Its past 9pm already central euro time. Still waiting.

    • @SoftwareNuggets
      @SoftwareNuggets День тому

      I reschedule for 6pm.

  • @ledinhanhtan
    @ledinhanhtan 6 днів тому

    🙏🙏🙏

  • @justwatch2353
    @justwatch2353 7 днів тому

    IF Identity column has a relation with child table we use ScopeIdentity() to insert into child table, For uniqueidentifier do we have same Functionality like identity

    • @SoftwareNuggets
      @SoftwareNuggets 7 днів тому

      NO. uniqueIdentifier does not have such a function. However, CREATE TABLE UParent ( ParentID UNIQUEIDENTIFIER PRIMARY KEY, ParentName VARCHAR(100) ); -- Create the child table CREATE TABLE UChild ( ChildID UNIQUEIDENTIFIER PRIMARY KEY, ChildName VARCHAR(100), ParentID UNIQUEIDENTIFIER, FOREIGN KEY (ParentID) REFERENCES UParent(ParentID) ); DECLARE @ParentID UNIQUEIDENTIFIER = NEWID(); -- Insert into UParent INSERT INTO UParent (ParentID, ParentName) VALUES (@ParentID, 'Parent Name'); -- Insert multiple children for this parent INSERT INTO UChild (ChildID, ChildName, ParentID) VALUES (NEWID(), 'Child 1', @ParentID), (NEWID(), 'Child 2', @ParentID), (NEWID(), 'Child 3', @ParentID); -- Optionally, you can select the inserted data to verify SELECT * FROM UParent WHERE ParentID = @ParentID; SELECT * FROM UChild WHERE ParentID = @ParentID;

  • @jamesharrison4838
    @jamesharrison4838 10 днів тому

    Love your videos man!!

  • @senhordoobvio178
    @senhordoobvio178 18 днів тому

    The best tutorial about this I have seen, thanks for that

  • @Helloworldred
    @Helloworldred 19 днів тому

    <3 thx

  • @santypanda4903
    @santypanda4903 20 днів тому

    Thanks for the simple explanation.

  • @ISHANCHANDRAKAR-iz2nh
    @ISHANCHANDRAKAR-iz2nh 21 день тому

    thanks it worked

  • @neginkordinejad5334
    @neginkordinejad5334 24 дні тому

    Thanks

  • @WilsonMar1
    @WilsonMar1 28 днів тому

    It would be wonderful if there were test code for this.

    • @SoftwareNuggets
      @SoftwareNuggets 28 днів тому

      Adding unit test.mock for this app now. I’ll let you know when that is complete.

    • @SoftwareNuggets
      @SoftwareNuggets 27 днів тому

      Hey @WilsonMar1, I created a unit test for: tic_tac_toe_pro.py Please download three files from my github account github.com/softwareNuggets/Python_TKInter_Tic_Tac_Toe 1) tic_tac_toe_pro.py 2) test_tictactoe.py 3) test.bat Please give me back some feedback if this "is" or "is not" what you were looking for. Scott

  • @paulinaocaranza1154
    @paulinaocaranza1154 Місяць тому

    Great utility to have on my computer! .

    • @SoftwareNuggets
      @SoftwareNuggets Місяць тому

      Hey @paulinaocaranza1154, for sure, this is a great utility to be used from your CMD in Windows.

  • @Ash-ts6bd
    @Ash-ts6bd Місяць тому

    Nice explanation

  • @Mabh838
    @Mabh838 Місяць тому

    Thank you for video with simple examples

    • @SoftwareNuggets
      @SoftwareNuggets Місяць тому

      Thanks, I also have 3 playlist full of videos about PostgreSQL. All simple to follow so you can build skills.

  • @abdulrehmanjaved-rt8jq
    @abdulrehmanjaved-rt8jq Місяць тому

    why we use inout btw, you haven't explained.

    • @SoftwareNuggets
      @SoftwareNuggets Місяць тому

      Hey @abdulrehmanjaved-rt8jq, Let me start of by showing you a very simple function that uses the INOUT clause: CREATE OR REPLACE FUNCTION update_value(INOUT num_param INT) AS $$ BEGIN num_param := num_param + 10; -- Increase the value by 10 END; $$ LANGUAGE plpgsql; -- NOTICE there is NOT a return clause on that function. --INOUT means, you send a value into that function (the IN) part, and (the out) part is available to the caller Here is how you call: SELECT * FROM update_value(5) AS result; notice the output of the call: num_param equals 15 Your question was, why do we use this. If you want to call a function, and want to set the behavior of a column to be both input and output, then use INOUT. CREATE TABLE IF NOT EXISTS orders ( id SERIAL PRIMARY KEY, total DECIMAL(10, 2) ); CREATE TABLE IF NOT EXISTS order_items ( id SERIAL PRIMARY KEY, order_id INT REFERENCES orders(id), price DECIMAL(10, 2), quantity INT ); -- Insert sample data INSERT INTO orders (id) VALUES (1), (2); INSERT INTO order_items (order_id, price, quantity) VALUES (1, 10.00, 2), (1, 15.50, 1), (2, 5.75, 3), (2, 20.00, 1); DROP FUNCTION calculate_total_cost(integer) CREATE OR REPLACE FUNCTION calculate_total_cost(inout order_id INT, OUT total_cost DECIMAL) AS $$ BEGIN SELECT SUM(price * quantity) INTO total_cost FROM order_items WHERE order_items.order_id = calculate_total_cost.order_id; -- Update the order with the calculated total UPDATE orders SET total = total_cost WHERE id = order_id; END; $$ LANGUAGE plpgsql; SELECT * FROM calculate_total_cost(1); in the function calculate_total_cost, change order_id from INOUT to IN; run this sql statement: SELECT * FROM calculate_total_cost(1); compare the return columns from the first function code, to the "change INOUT to IN" code results. Hope this helps. Scott

    • @abdulrehmanjaved-rt8jq
      @abdulrehmanjaved-rt8jq Місяць тому

      @@SoftwareNuggets Thanks for great explaination, appreciated.

  • @abdulrehmanjaved-rt8jq
    @abdulrehmanjaved-rt8jq Місяць тому

    Thanks

  • @NirojMeshram
    @NirojMeshram Місяць тому

    Very well explained. covered so many thing in such a easy way.

  • @001KW9
    @001KW9 Місяць тому

    Well explained, thanks for that. What am I doing wrong. Have json in string, but when I try to Deserialize, I don't get the information as it should. Don't have the PC open right now, but it shows the content as parents and children parents etc. Can you tell, from your experience, what might be wrong?

    • @SoftwareNuggets
      @SoftwareNuggets Місяць тому

      hey @001KW9, please send the JSON you are using. If you have attempted to create a C# class object, you can send that too, however, I can start from scratch if necessary. send to: softwareNugget65@gmail.com

    • @001KW9
      @001KW9 Місяць тому

      @@SoftwareNuggets sent

    • @SoftwareNuggets
      @SoftwareNuggets Місяць тому

      I have not received: softwarenugget65@gmail.com

    • @SoftwareNuggets
      @SoftwareNuggets Місяць тому

      I got it

    • @001KW9
      @001KW9 Місяць тому

      @@SoftwareNuggets Will send you the received json content tomorrow

  • @kethavathaadarsh5604
    @kethavathaadarsh5604 Місяць тому

    It does not work if the dataset is huge.

    • @SoftwareNuggets
      @SoftwareNuggets Місяць тому

      are you trying a deserialize a json file into a c# class?

  • @Jessie-ct6qq
    @Jessie-ct6qq Місяць тому

    Thank you so much for this video sir

  • @stupidmemesforbrokenteens5941
    @stupidmemesforbrokenteens5941 Місяць тому

    Thank you very much

  • @user-xo3cr1re8v
    @user-xo3cr1re8v Місяць тому

    can you give us data set through which we can practice what you thought us we can be pleased with you thought as you given solution in comment box to Mohemed

    • @SoftwareNuggets
      @SoftwareNuggets Місяць тому

      Hey @user-xo3cr1re8v, I have a UA-cam video, in the first 20 second, I show you where to get this database: ua-cam.com/video/9aXD69xBvMs/v-deo.html Just to download: www.postgresqltutorial.com/postgresql-getting-started/postgresql-sample-database/ Hope this help!

  • @truthseeker9988
    @truthseeker9988 Місяць тому

    Hi there, 👍How can I make a listbox with debit and credit columns? Which modules should I use?

    • @SoftwareNuggets
      @SoftwareNuggets Місяць тому

      Hey @truthseeker9988, a listbox normally displays one "field". You can put two fields together, and make one field debit | Credit { " $0.00 | $13.56" } or you can use a TreeView control. <code> import tkinter as tk from tkinter import ttk def main(): # Create the main application window root = tk.Tk() root.title("Debit and Credit Columns") root.geometry("400x300") # Create the Treeview widget tree = ttk.Treeview(root, columns=("Debit", "Credit"), show='headings') tree.heading("Debit", text="Debit") tree.heading("Credit", text="Credit") tree.pack(fill=tk.BOTH, expand=True) # Insert sample data into the Treeview data = [ ("100.00", "0.00"), ("0.00", "50.00"), ("200.00", "0.00"), ("0.00", "100.00") ] for item in data: tree.insert("", "end", values=item) # Run the main event loop root.mainloop() if __name__ == "__main__": main() </code>

    • @truthseeker9988
      @truthseeker9988 Місяць тому

      @@SoftwareNuggets How? Is there a video about this?

    • @SoftwareNuggets
      @SoftwareNuggets Місяць тому

      I have a video about using a Treeview control, this "may" be helpful. ua-cam.com/video/cuIjKMPRn0k/v-deo.html Tell me some more about your problem? 1) where is the data coming from? (a database, json, mongodb)? 2) why do you want to show debit and credit in a list? -- Copy the code I wrote above in a file called: tree.py; then use IDLE or your favorite editor and run that code.

  • @user-me1wr6no2v
    @user-me1wr6no2v Місяць тому

    all in all good skills and idea

  • @paulinaocaranza1154
    @paulinaocaranza1154 Місяць тому

    Great video, regards!

    • @SoftwareNuggets
      @SoftwareNuggets Місяць тому

      Thank you for watching several videos and leaving comments. Much appreciated.

    • @paulinaocaranza1154
      @paulinaocaranza1154 Місяць тому

      @@SoftwareNuggets My pleasure!

  • @DoctorMGL
    @DoctorMGL 2 місяці тому

    automatic updates from the ObservableCollection comes with a big cost when there is too much data loading on your datagrid , specially that it heavily relay on Events that watch for changes all the times VS manual updates that can keep your memory free from pressure till you detect something happen "using triggers " then pushing the updating manually . this way you save a big performance and enhance the speed of your UI . and remember we often think our model is working perfect because we are testing on small data amount with less pressure . but in production your application users will have millions of data stacking year after year .

    • @SoftwareNuggets
      @SoftwareNuggets 2 місяці тому

      Hey @DoctorMGL, I agree with you 100%. Great comment. I've also learned over the years that Observable Collections offer convenience for handling dynamic data, its reliance on events can indeed be a performance bottleneck with large datasets.

  • @hamzasl4117
    @hamzasl4117 2 місяці тому

    This was very helpful Sir.

    • @SoftwareNuggets
      @SoftwareNuggets 2 місяці тому

      Hey @hamzas4117, glad to hear this video was very helpful. Thanks for letting me be part of your learning journey.

  • @jaibhavsar1
    @jaibhavsar1 2 місяці тому

    Hey, great video but I have a question. Is there a way to do a case-insensitive check with this operator?

    • @SoftwareNuggets
      @SoftwareNuggets 2 місяці тому

      Hey @jaibhavsar1, try this: where LOWER(your_column) && LOWER("search_value');

    • @SoftwareNuggets
      @SoftwareNuggets 2 місяці тому

      I just checked out your channel. (cool track) To muse means to become lost in thought. ua-cam.com/video/L70yH6g3P7s/v-deo.html

  • @GruntGiggler
    @GruntGiggler 2 місяці тому

    u sound like Marty O'Donnel

    • @SoftwareNuggets
      @SoftwareNuggets 2 місяці тому

      Send me a link so I can hear his voice.

  • @rembautimes8808
    @rembautimes8808 2 місяці тому

    Very well presented

  • @mohamedazzouz6086
    @mohamedazzouz6086 2 місяці тому

    Nice explanation thank you so much

    • @SoftwareNuggets
      @SoftwareNuggets 2 місяці тому

      Thanks for taking the time to watch and comment on this video. Truly appreciated.

  • @g13n4
    @g13n4 2 місяці тому

    Very easy to understand and very helpful. Thank you!

    • @SoftwareNuggets
      @SoftwareNuggets 2 місяці тому

      Glad to hear this video was helpful. Appreciate you leaving a comment.

  • @khizerhayyat549
    @khizerhayyat549 2 місяці тому

    very informative and easy to understand teaching style.

    • @SoftwareNuggets
      @SoftwareNuggets 2 місяці тому

      Hey @khizerhayyat549, thanks for the comment, much appreciated.

  • @paulinaocaranza1154
    @paulinaocaranza1154 2 місяці тому

    Great video!

    • @SoftwareNuggets
      @SoftwareNuggets 2 місяці тому

      Glad you enjoyed it. And thanks for posting a comment.

  • @jahbyke
    @jahbyke 2 місяці тому

    Man! You good. Thanks for this video, it made understanding SQL easier. You got a subscriber. Keep posting good contents like this please. You channel will grow with time. Don't give up man, wish you good health

    • @SoftwareNuggets
      @SoftwareNuggets 2 місяці тому

      Hey @jahbyke, thanks for comment. I appreciate the motivation to keep going, and thank you for subscribing to the channel.

  • @DianaUrbina-bd7mk
    @DianaUrbina-bd7mk 2 місяці тому

    Thank you! This video was super helpful.

    • @SoftwareNuggets
      @SoftwareNuggets 2 місяці тому

      Thank you. Glad to hear it was helpful.

  • @TheGladiator123
    @TheGladiator123 3 місяці тому

    my man is a absolutely wonderful appreciate what you do man

    • @SoftwareNuggets
      @SoftwareNuggets 3 місяці тому

      Thanks a lot @TheGladiator123, appreciate you taking the time to write a comment, and hope this video was helpful.

    • @TheGladiator123
      @TheGladiator123 3 місяці тому

      @@SoftwareNuggets just if you can I would like to see more implementation of This function in solving more complex/ real world problem Also A Question: Can I use This user defined function to create a new column in the table

    • @SoftwareNuggets
      @SoftwareNuggets 3 місяці тому

      @@TheGladiator123 watch these video's I created using the function. I think you'll be impressed, and you'll become the master! --deck of cards (great skill to learn) ua-cam.com/video/7U129er3MYQ/v-deo.html --table valued function ua-cam.com/video/9aXD69xBvMs/v-deo.html --insert stored procedure ua-cam.com/video/jOyYhwxMGpg/v-deo.html --cursor in a function ua-cam.com/video/o4blx6Ij5S8/v-deo.html --how to write a scalar function ua-cam.com/video/2DtPEXjnxs4/v-deo.html --return a rowtype ua-cam.com/video/hOe3bi_nUYA/v-deo.html --convert ip address to big int ua-cam.com/video/SVlWmjM4sWk/v-deo.html

    • @SoftwareNuggets
      @SoftwareNuggets 3 місяці тому

      @@TheGladiator123 here is a function to allow you to add a column to a table. CREATE OR REPLACE FUNCTION fn_add_column_to_table(table_name VARCHAR, column_name VARCHAR, the_data_type VARCHAR, size INT) RETURNS VARCHAR AS $$ BEGIN IF size IS NOT NULL THEN EXECUTE format('ALTER TABLE %I ADD COLUMN %I %s(%s)', table_name, column_name, the_data_type, size); ELSE EXECUTE format('ALTER TABLE %I ADD COLUMN %I %s', table_name, column_name, the_data_type); END IF; RETURN 'Column added successfully'; END; $$ LANGUAGE plpgsql;

    • @TheGladiator123
      @TheGladiator123 2 місяці тому

      ​@@SoftwareNuggets hey king Just Your Opinion I wa trying to implement what I learned From You But got Stucked At This edge Case Where I let The User pass an arraay OF words To a Colum with The Type VARCHAR(225) I still Got errors and I can't change The Column Defination

  • @GameBacardi
    @GameBacardi 3 місяці тому

    Cool. Gonna try

  • @sajali1954
    @sajali1954 3 місяці тому

    Any idea how to select the json output in column and row format, like cursor returning the values.

    • @SoftwareNuggets
      @SoftwareNuggets 3 місяці тому

      hey @sajali1954 I think this video might help you. ua-cam.com/video/oGzRHlnhIFw/v-deo.html if it doesn't answer your question, I have about 30 shorts videos (less than 1 minute each), all about JSON. Here is a link to the playlist about JSON. ua-cam.com/play/PLRU_t-SgTrYgEyj0rCpDX30J0ombkf1kO.html Please let me know is if you found help, or you still need a solution. Scott

  • @VishalMax-vv2qf
    @VishalMax-vv2qf 3 місяці тому

    sir can please explain brief about min in the 2 nd select

    • @SoftwareNuggets
      @SoftwareNuggets 3 місяці тому

      Hey @VishalMax-vv2qf, did you get the source from my github account? Is this the SQL statement you need me to explain: select name, occupation, row_number() over(partition by occupation order by occupation asc, [name] asc ) as num from #occupations

  • @PaoloPechoIman1981
    @PaoloPechoIman1981 3 місяці тому

    excelente video..

  • @ArogunmatiMulikat
    @ArogunmatiMulikat 3 місяці тому

    I don't get it well my question did not answer,my question is out line six language in which function can be written in post Gre SQL? am a a student

    • @SoftwareNuggets
      @SoftwareNuggets 3 місяці тому

      Are you asking, other than LANGUAGE plpgsql, what other languages can you use?

  • @albertoarias2978
    @albertoarias2978 3 місяці тому

    Great lesson

  • @rodf1021
    @rodf1021 3 місяці тому

    Thank you for the quick and direct video. Good examples and demonstration.

    • @SoftwareNuggets
      @SoftwareNuggets 3 місяці тому

      Hey @rodf1021, I want to thank you for taking the time to leave a comment. Your input is greatly appreciated.

  • @user-hp4lk6ms1o
    @user-hp4lk6ms1o 3 місяці тому

    how do I parse a file with three levels if I have such an example /SCHET/SLUCH/USL/ and in each /SCHET n - /SLUCH and in each /SLUCH n- USL/

    • @SoftwareNuggets
      @SoftwareNuggets 3 місяці тому

      Can you send me a little part of your xml?

    • @SoftwareNuggets
      @SoftwareNuggets 3 місяці тому

      Send to softwareNugget65@gmail.com

    • @SoftwareNuggets
      @SoftwareNuggets 3 місяці тому

      Did you watch this video i created? ua-cam.com/video/JTZHPPJKinU/v-deo.html

    • @user-hp4lk6ms1o
      @user-hp4lk6ms1o 3 місяці тому

      @@SoftwareNuggets Thank you for the video, I coped with this, if you are interested in what was wrong with my code, I can additionally write to you

    • @SoftwareNuggets
      @SoftwareNuggets 3 місяці тому

      Hey Максим, I sent you an email with how to parse the XML you sent me! Hope that example helps. --scott

  • @thaaychannel100
    @thaaychannel100 3 місяці тому

    Excellent video and new subscriptions from tamilnadu, India

    • @SoftwareNuggets
      @SoftwareNuggets 3 місяці тому

      Thanks for the sub! I just viewed: ua-cam.com/users/shortsASf5JpYEf5I on your channel. Nice short.

  • @saulocpp
    @saulocpp 3 місяці тому

    Isn't it possible to change/update the information on the DataGrid itself? Aren't the rows editable?

    • @SoftwareNuggets
      @SoftwareNuggets 3 місяці тому

      Hey @saulocpp, for sure. dataGridView1.ReadOnly = false; dataGridView1.CellDoubleClick += DataGridView1_CellDoubleClick; dataGridView1.CellEndEdit += DataGridView1_CellEndEdit; private void DataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex >= 0 && e.ColumnIndex >= 0) { dataGridView1.BeginEdit(true); } } private void DataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e) { // Update the underlying data source // For example, if you're using a DataTable as the DataSource // you would update the corresponding DataRow here }

    • @saulocpp
      @saulocpp 3 місяці тому

      @@SoftwareNuggets I will definitely try your suggestions and adapt to WPF DataGrid accordingly... after I finish watching one more of your tutorials. 😅

    • @SoftwareNuggets
      @SoftwareNuggets 3 місяці тому

      I hope these videos help. Thanks for the feedback.

  • @AdmiringBear-oq4vb
    @AdmiringBear-oq4vb 3 місяці тому

    👍

  • @spritoff
    @spritoff 4 місяці тому

    A thought come to me)), that i need to get a string according my object and make newton eat it)). Am i right?

    • @SoftwareNuggets
      @SoftwareNuggets 4 місяці тому

      Can you write down the json you want, “key”: “value”, the key is the name of the field, the value is just that, the value. A value can be a string, a date, … or an OBJECT. I have many videos about is on my channel. Plz watch several of them to help you. If you still need help, I will be here. Plz leave a comment on each video you watch, so I know what you should have learned. Don’t worry, we will teach you what you need to know!