Google Sheets SUPERSQL QUERY Function - Apps Script SQL AlaSQL UDF - Part 1

Sdílet
Vložit
  • čas přidán 29. 08. 2024
  • This tutorial covers how to create SUPERSQL QUERY Function in Google Sheets using Apps Script, AlaSQL and JavaScript. With this function we'll be able to execute SQL like statements on ranges of data, including join statements.
    Series Playlist:
    • Google Sheets SUPERSQL...
    github.com/chi...
    github.com/chi...
    To understand this video you need to understand JavaScript array methods. You can learn about them in this playlist • JavaScript Arrays & Me...
    #SUPERSQL #GoogleSheets #alasql

Komentáře • 57

  • @leonlysak4927
    @leonlysak4927 Před 4 lety +15

    Just giving you another boost with the CZcams algo because you're an amazing teacher. Keep up the good work man

  • @carmencastro5512
    @carmencastro5512 Před 4 lety +3

    Todos hablan del virus pero este hombre sigue en lo suyo, Love u....

  • @vinodkumarPrajapativnd
    @vinodkumarPrajapativnd Před 4 lety +1

    Just amazing. No words to describe how useful your efforts are. Due to lack of database query language in GAS I used to make my own query functions painfully. hopefully I'll able to translate them with this solution.

  • @huuhoangnguyen574
    @huuhoangnguyen574 Před 4 lety +3

    This is phenomenal

  • @deepouterspace
    @deepouterspace Před 4 lety +3

    Fantastic! Thanks a lot for this tutorial! Incredibly useful.

  • @rogerangel4257
    @rogerangel4257 Před 4 lety +1

    we need more people like you my guy :)

  • @TrollNithyanandaTrollers
    @TrollNithyanandaTrollers Před 4 lety +1

    Just Genius you are man!! Thanks a lot

  • @johnmillersr.colorado
    @johnmillersr.colorado Před 4 lety +1

    Yes, you are amazing! I've wanted to see if SQL could be used in Google Sheets and the way you approached this was fascinating! BTW, as I watched you searching for the error I was hopping up and down, raising my hand, hoping you'd see the extra right parin. You've probably found it afterward, no doubt.

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 4 lety

      I'm not sure if I've noticed it. Which line are you referring to?

    • @johnmillersr.colorado
      @johnmillersr.colorado Před 4 lety

      @@ExcelGoogleSheets I went through your tutorial again and even replicated the script, but I'm not seeing where I thought there was an extra right parin. Here's the sheet URL I produced: docs.google.com/spreadsheets/d/1ntcijJ9vWzVy_Gt2Uchi_XGriTaUAICyTkQrhJF5DSI/edit?usp=sharing

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 4 lety +1

      Your column Section has an extra space in the end.

    • @johnmillersr.colorado
      @johnmillersr.colorado Před 4 lety +1

      @@ExcelGoogleSheets Thank you so much! Didn't think about the header row for the table but removing the extra space fixed the issue in my sheet.

  • @alexkong93
    @alexkong93 Před 4 lety +1

    the best youtuber

  • @user-ji2pr9js4j
    @user-ji2pr9js4j Před 4 lety

    Thank you for the video. I was just thinking about how to merge the data from the two tables.

  • @AnthonyYandow
    @AnthonyYandow Před 4 lety

    I love love love your videos and content! Please keep it up!

  • @virterra
    @virterra Před 4 lety

    Pretty awesome. Thanks.

  • @ClairyOso
    @ClairyOso Před 3 lety

    for real amazing -- thank you

  • @marvincastilblancocampos6018

    Buen tutorial

  • @GIU153
    @GIU153 Před 2 lety

    yes i do with mor tables , it works, but how to set the source as global lib for all used sheets and use directly from sheets syntax

  • @cheewurz
    @cheewurz Před 4 lety +5

    You Sir do know your Craft!

  • @pichit.raetai
    @pichit.raetai Před 4 lety

    Thank you very much

  • @rainierh23
    @rainierh23 Před rokem

    Hello, this function is very helpful, thanks.
    I am trying to filter by date with "SELECT * FROM ? WHERE recordDate= "2023-07-12", but is not working. Can you help me with the correct sintax?

  • @vegasilkit
    @vegasilkit Před 3 lety

    So you could theoretically update a master list from another sheet that has record changes?

  • @cristianidade
    @cristianidade Před 3 lety

    Please, how to run a UPDATE sql comand using SUPERSQL? I need this so much ;)

  • @mask75260
    @mask75260 Před 4 lety

    Hey you can start Online classes and become pro like you. I will join but please keep prices affordable.

  • @ganeshborude8539
    @ganeshborude8539 Před 4 lety

    Very informative video sir. Just a small question. can we use cluses like "group by", "having" and also if I want the data in an "ascending" or "descending" order, can I use these conditions in query?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 4 lety +1

      Yes, you can

    • @ganeshborude8539
      @ganeshborude8539 Před 4 lety

      @@ExcelGoogleSheets Can I refer to particular cell in "Where clause" ? e.g. "....select * from xxx where Month = $c$2" or something like this. (note : '$c$2' is cell with drop-down combo where I am selecting a month)

    • @ganeshborude8539
      @ganeshborude8539 Před 4 lety

      Hello, could you please suggest a solution for this?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 4 lety

      @@ganeshborude8539 This video should show you how to add variables czcams.com/video/V9HiM3_n7NM/video.html
      What's the data in that Month column?

  • @Cleuton1234
    @Cleuton1234 Před 4 lety

    Hello. I wonder if it is possible to do research in the spreadsheet with webapp. I have a very large online spreadsheet and it is slow to load data. I would just like a single line.

  • @u1der
    @u1der Před rokem

    Tried this with latest version 2.5.0 but I can evem save tes5 cript file, showing error of unexoected token = online the class Transaction

  • @passangtsheringtamang5685

    How to perform count function in apps script similar to countif fuction.

  • @quocbvo
    @quocbvo Před 3 lety

    Hello,
    I am getting this error message.
    TypeError: cannot read property 'shift' of undefined.
    I did test alasql by the following step, but still get that message.
    May you please help me with this error. What am I missing?
    I am using alasql version: 0.6.2
    Thanks

  • @appsbei714
    @appsbei714 Před 3 lety

    When i try
    var data = [ {a: 1, b: 10}, {a: 2, b: 20}, {a: 1, b: 30} ];
    var res = alasql('SELECT a , SUM(b) as B FROM ? where a=1 GROUP BY a ',[data]);
    Logger.log(res);
    I got error message
    TypeError: Cannot find function findIndex in object a. (line 9734, file "alasql")
    could you help me, please

  • @bhavyashreesarvamangala6775

    Can u pls tel me how to import data from metabase to google sheet with out downloading data pls reply I need to automate report no one Is helping

  • @openinterestanalysis4283

    hi sir , is it possible to convert excel vba to google apps scripts... i have excel with vba, how to convert it to gas sheet

  • @santiagosanchezsanz9034

    Hi, how can I do a Cross JOIN ? It seams is not possible. Thank you very much!

  • @paulkindervater842
    @paulkindervater842 Před 4 lety

    What is the JavaScript IDE ?

  • @kennethforbin5604
    @kennethforbin5604 Před 4 lety

    Really like your videos, mine SUPERSQL installation didn't work, gave me a #Name? error saying Unknown function SUPERSQL. What could I have missed? Help please

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 4 lety

      Did you follow the steps in the installation video? If yes, just refresh the spreadsheet & try again.

    • @kennethforbin5604
      @kennethforbin5604 Před 4 lety

      @@ExcelGoogleSheets .Thank you for responding so quick. I refreshed and had the same error message. I am sure I followed the steps in the installation video but I will do it again. It may an administrative restriction. I appreciate you bro

  • @riskamegasari136
    @riskamegasari136 Před 3 lety

    can somebody help me? i can't find that alasql script :(

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 3 lety

      in video description

    • @riskamegasari136
      @riskamegasari136 Před 3 lety

      @@ExcelGoogleSheets thank you so much for your help. just in case you forgot instead of full join, full outer join works in sql :).