Skip to content

JOIN query and ANY query produced different results

I am new to SQL and I can’t figure out why the following two queries would have different results. The purpose is to list product names if there are any records in the order details table that quantity = 10. The first statement gives more results than the second one. I am using the “Northwind samp…

Is this php login system secure? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago. Improve this question Is this login page secure, researching about sql-injection, is their …

SQL: Convert integer into formatted hex string

In PostgreSQL, let’s say I have the following table: I want to convert the myInt column into a formatted string that contains the hex representation of the integer in it and rename the column. So it would look something like the following: What would the query look like to convert the integer? Answer Tr…

google bigQuery subqueries to joins

I have the following table. basically simplified version of my table. I need to aggregate few columns, I will explain what I am trying to do and also what I have written till now. tableName variations can be like pizza toppings, each variation has an amount, say veggie toppings cost 10 cent and meat toppings …

Connect to a DB using DBplyr

Problem I am trying to connect to a SQL Server which is on premises using dbplyr using the instructions here but I keep getting an error saying Invalid object name For simplicity I am using the same object naming convention as RStudio has in the instructions at the link above. Code that produces the error I u…