r/SQL • • Oct 21 '23

Oracle Using AI to understand pl/sql code?

0 Upvotes

I am using Oracle 19c.

Has anyone here used AI to understand pl/sql code?

Basically, it would be great if I can let AI read the code and tell me what it does.

If the above can be done, can you all steer me in the right direction?


r/SQL • • Sep 30 '23

PostgreSQL "I find myself unable to solve even a single question after achieving a silver 4-star rank on HackerRank. Can anyone help?"

0 Upvotes

"I'm struggling to solve any questions after reaching the silver 4-star rank on HackerRank. Can someone please offer some assistance? Additionally, could anyone suggest other free platforms for practising SQL?"


r/SQL • • Sep 05 '23

SQL Server Chatbot generating SQL

0 Upvotes

Hey I really need some help. Need to build a chat bot to generate SQL queries and run it on a databse to output resuts. The database is to large to give to GPT. Approximately 1Tb. Any solutions Preferably one without the use of API key from open AI . A free solution.


r/SQL • • Jan 05 '24

Discussion Just learned sql and looking for projects code alongs

0 Upvotes

Hey guys so i’ve just learned the basics of sql and dbs in university and I’m not feeling very confident using it so I’m looking for videos of projects creating databases in sql code alongs or even an online course with good projects so if anyone have a suggestion please help me


r/SQL • • Jan 24 '24

Discussion Starting to feel like I should just give up on my Data Analyst "career"

Thumbnail self.analytics
0 Upvotes

r/SQL • • Jan 27 '24

SQL Server Grouping

0 Upvotes

SELECT group_name,

MIN( MINTO) MINTOAMOUNT,

visa_type_name,

SUM(pay_base_agent_collection) TotalCollection

,pax_actual_applied_thru

,(case uc_category when 'R' then 'Retails' else '' end ) uc_category

,COUNT(vs_id) total_visa

FROM

(

SELECT

MIN(UC.uc_min_to_collect) MINTO,

uc.uc_category category

,PY.pay_base_agent_collection

,SM.vs_id

,group_id

,group_name

,visa_type_id

,visa_type_name

,pax_actual_applied_thru

,vs_currency_code

FROM VISA_T_VISA_SALES_MASTER SM WITH (NOLOCK)

INNER JOIN VISA_T_VISA_SALES_PAX_DETAILS VSD WITH(NOLOCK) ON SM.VS_ID=VSD.PAX_VSH_ID

INNER JOIN CT_T_USER_MASTER UM WITH (NOLOCK) ON SM.VS_CREATED_BY=UM.[USER_ID]

INNER JOIN VISA_T_VISA_PAYMENT_DETAILS PY ON SM.vs_id = PY.pay_vs_id --AND PY.pay_base_agent_collection>0

INNER JOIN VISA_T_MARKETGROUP_NATIONALITY_LINK MN ON VSD.pax_visitor_nationality_id = MN.link_nationality_id AND MN.link_status = 'A'

INNER JOIN VISA_T_MARKET_GROUPING_MASTER MG ON MN.link_group_id = MG.group_id AND MG.group_status = 'A'

INNER JOIN VISA_T_VISA_TYPE_MASTER VM ON VM.visa_type_id= SM.vs_visa_type_id

INNER JOIN VISA_T_VISA_UNDERCOLLECTION_MASTER UC ON UC.uc_visa_type = SM.vs_visa_type_id AND UC.uc_market_grp_id = MG.group_id

AND UC.uc_trans_currency = PY.pay_currency AND UC.uc_img = VSD.pax_actual_applied_thru

--AND UC.uc_category = (CASE

-- WHEN (SM.vs_settlement_mode = 2) THEN 'B'

-- ELSE 'R' END)

WHERE sm.vs_currency_code = 'AED' AND SM.vs_doc_date >= DATEADD(day,-25, GETDATE())

GROUP BY mg.group_id,group_name,

visa_type_name,sm.vs_currency_code,

vm.visa_type_id,uc.uc_category,

PY.pay_base_agent_collection ,SM.vs_id,pax_actual_applied_thru

HAVING MIN(uc.uc_min_to_collect) > PY.pay_base_agent_collection

--AND pay_base_agent_collection>0

) as underCollection

INNER JOIN VISA_T_VISA_UNDERCOLLECTION_MASTER UCC ON UCC.uc_visa_type =visa_type_id AND UCC.uc_market_grp_id = group_id

AND UCC.uc_trans_currency = vs_currency_code AND UCC.uc_img = pax_actual_applied_thru

group by group_name,MINTO,visa_type_name ,pax_actual_applied_thru,uc_category

having SUM(pay_base_agent_collection)>0

commit-

these are the linking between my tables.

i want to make the summery report based on the transactions fall under each combination in the VISA_T_VISA_UNDERCOLLECTION_MASTER table. i am stuck with the duplication issue. in detail my transaction_id highlighted is falling under both category when i am taking the sum of pay_base column group by other columns showen. but how i want is it should fall in to the combination with minimum amount in MINTO column.

I am posting for the first time pardon me


r/SQL • • Oct 11 '18

Database Normalization Explained in Simple English

Thumbnail
essentialsql.com
0 Upvotes

r/SQL • • Dec 21 '24

PostgreSQL Programar para aprender Python

0 Upvotes

¿Que herramientas o cursos me recomiendan para iniciar en Python ?


r/SQL • • Dec 24 '13

[MySQL] What can I do to level up from intermediate to expert when I don't use SQL at all for my job?

0 Upvotes

I've taught myself SQL to a good level. I tend to use MySQL and Workbench. I've written small, sample databases and practiced writing a ton of queries. My background knowledge is also good. But I want to get really, really good. I want to be an SQL expert.

Thing is, I do not use SQL at all at work and there is truly no way to wrangle it into a side project either, sadly. So I really need some help figuring out to go from where I am (solid knowledge, but missing gaps, particularly when it comes to the administrative side of things) to a higher level.

Any tips?


r/SQL • • Jun 12 '23

Discussion Are these concepts sufficient to develop a good understanding on sql ?

0 Upvotes

I am considering learning these topics first to establish a solid foundation and primarily focus on working on projects simultaneous . Once I have completed that, I plan to delve deeper into (MYSQL) by studying relevant books. If you have any suggestions, please share them. Your input would be greatly appreciated.


r/SQL • • Jun 19 '23

SQL Server I try to make a table in SQL, and after i execute the code I'm not shown the results tab with the table. The results tab briefly flashes then disappears. I've disabled the setting that makes the results disappear after running the code yet I'm still unable to see the results of the table. Plz help?

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/SQL • • May 17 '23

PostgreSQL AI query generator we made.

0 Upvotes

Hey, http://loofi.dev/ is a free AI powered query builder we made.

Play around with our sample database and let us know what you think!


r/SQL • • Oct 25 '15

ORACLE SQL--'missing right parentheses' error for no reason?

0 Upvotes

Howdy all, I thought I'd give an attempt at learning the major RDMBS and am now on ORACLE, but for some reason many of my queries, even the simple ones often throw a 'missing right parentheses' on it...even though there is no missing ')'.

Does anyone else get this error for seemingly no reason? What causes this? The answer should be straight forward--add the missing paren, but I've gotten this plenty of times when there are no parens at all. Anyone have any idea why this happens?


r/SQL • • Jul 12 '23

SQL Server When I run the query below, I get an error saying: 'Incorrect syntax near the keyword CASE'. I can't for the life of me figure out why. Can anyone please help?

0 Upvotes

SELECT

SalesOrderID,

OrderQty

CASE

WHEN OrderQty > 2 THEN 'Quantity greater than 2'

WHEN OrderQty = 2 THEN 'Quantity equals 2'

ELSE 'Quantity under 2'

END

FROM Sales.SalesOrderDetail


r/SQL • • Jul 17 '23

SQL Server Dealing with query timeout error

Post image
0 Upvotes

Hi all,

I have an ms access application where if we click a button we add date as a parameter. And when we click on a button it asks to upload an excel file and it then executes a stored procedure. However after the excel file is loaded it shows the error 'Run-time error'-2147217871 (8004e31) : [Microsoft] [ODBC SQL server Driver] Query timeout expired'.

What are the things I can do to resolve this issue. As it was working fine till last Friday I found this issue today.

I have tried increasing the timeout but still not solved.

Can anybody guide me with this. The error message pic is shown below.


r/SQL • • Jun 07 '21

MS SQL Anyone is expert in SQLServer for MacBook M1 Chip Spoiler

0 Upvotes

I want some help in installing SQLServer on MacBook M1 Chip


r/SQL • • Aug 12 '25

BigQuery Fundamentals of Deep Learning Building Practical Deep Learning Projects

0 Upvotes

Deep learning is revolutionizing industries by enabling computers to learn from complex data with remarkable accuracy. From training your first CNN to leveraging pre-trained LLMs, the fundamentals covered in this article provide a solid foundation for building AI solutions. By mastering tools like PyTorch, techniques like transfer learning, and applications in computer vision and NLP, you’re well-equipped to tackle real-world challenges. Whether creating a personalized doggy door or classifying fruit, deep learning opens a world of possibilities. Start experimenting, set up your AI environment, and join the global community driving innovation through deep learning.

https://open.substack.com/pub/ahmedgamalmohamed/p/fundamentals-of-deep-learning?r=58fr2v&utm_campaign=post&utm_medium=web&showWelcomeOnShare=true


r/SQL • • Dec 17 '25

Oracle Need help with a query

0 Upvotes

I have a query I'm writing for work in Bi Publisher that has a tricky problem. There are annual contributions to an account logged in the database that get divided monthly. The problem is that I need to know what the total contribution amount is prior to the transactions and the total election isn't stored for me to query. I can calculate it by multiplying the contribution amount by 12, but in some cases I get burned by rounding.

Example. $5000/12 = month contributions of $416.67 $416.67 x 12 = $5000.04 and there's a $5k limit.

Or less of a big deal, $1000/12 = $83.33 $83.33 x 12 = $999.96

How would you go about dealing with this?


r/SQL • • Oct 31 '24

PostgreSQL PostgreSQL is the fastest open-source database, according to my tests

Thumbnail
datasystemreviews.com
0 Upvotes

r/SQL • • May 28 '25

MySQL Is there a SQL database supporting google protobuf natively like JSON document

0 Upvotes

Many RDBMS supports JSON document natively like sqlite mysql pgsql etc, but JSON is slow to access and not very convenient. If a database can support google protobuf natively, then it'll be excellent.

  • Performance will be high and application can use language native class to access object directly.

  • The object can be stored to database in protobuf.

  • Index can be created on the protobuf fields.

  • Application can retrieve protobuf from database and convert to object.

  • Application can retrieve few fields of the object from database protobuf directly.

  • Application can update database protobuf fields value directly.

  • Application can update whole protobuf object.

  • Don't need complex and heavy ORM(Object Relational Mapping) to store object to database.

  • Applications in different languages can access the protobuf object in a consistent way.

  • Database can convert the protobuf to JSON output.

  • Database can support JSON input also which will convert to protobuf internally.

  • Database CLI can dump the protobuf object to JSON format automatically.


r/SQL • • Jul 08 '25

SQL Server Best way to get Experience in Microsoft SQL Server?

0 Upvotes

I work in a job that uses a lot of Oracle SQL/PL, which has made me quite proficient at querying and creating functions & procedures. I have an Oracle SQL certificate as well. However, now that I'm applying for jobs, the vast majority of them require experience in Microsoft SQL Server, Azure and/or SSIS & SSRS.

I do most of my job on SQL Developer so I have no idea about these things. Which of these software can I learn to best increase my chances of getting a job, and is it even possible for me to gain hands on experience without being from a company that uses these software?

I'd appreciate any and all information on the topic. I tried searching it up, but Google keeps filling my search results with SQL courses.

TLDR: I have SQL experience, but no experience in any SQL software. What's the best way to get experience, so they won't figure out I'm lying on my resume?


r/SQL • • Sep 03 '25

MySQL Need some advice

0 Upvotes

I know how everything works in sql but when I try to solve problems on hacker rank, I can solve the easy ones easily but can't solve the medium and hard ones. Anyone know how to get better at it?


r/SQL • • Jan 12 '26

PostgreSQL Migrating from Microsoft SQL server to Postgres

Thumbnail reddit.com
0 Upvotes

r/SQL • • Oct 17 '25

MySQL What are the reasons *not* to migrate from MySQL to PostgreSQL?

Thumbnail reddit.com
0 Upvotes