« first day (2814 days earlier)      last day (1504 days later) » 

06:05
hi
06:53
Hi I have a tool which won't take union operator and "or "operator in where condition .how to join two exclusive result sets
 
3 hours later…
09:54
why cant you use union or or? @amarenderreddyjali
but you could try something, it's not very pretty, but providing the two result sets have the same columns you can put them both into a temp table and select all from the temp table
10:55
Hello
 
2 hours later…
12:34
Hi need guidance in writing a query for record type in bigquery
SELECT Country,struct (Year) FROM `polished-time-266716.TestData.Remodel_Cencus_DDL` where Country = 'Turkey' and ARRAY<STRUCT<Year>>['2018']
13:07
whats the question?
13:41
ARRAY stuff in SQL?
wow i'm getting out-dated
haven't done any SQL for a long time now :(
@SaadChaudhry plz make ur bit more clear
14:31
hey guys
15:06
@Codewizard Sorry I didn't place the full context.
Acually I am trying to query nested columns in bigquery
CREATE TABLE `polished-time-266716.TestData.tabletest2`
(
country STRING,
year ARRAY<STRUCT<age ARRAY<Struct<population String>>>>
);
This is the schema of my table
Trying to write SQL using this table that returns Turkey’s population of 35 age in year 1985.
@ARr0w maybe, but its bigquery google cloud
This is what i currently have.
SELECT * FROM `polished-time-266716.TestData.tabletest2`
WHERE EXISTS (
SELECT 1 FROM UNNEST(year)
) and country = 'Turkey'
 
2 hours later…
16:46
So what kind of problem ur a facing dude is it syntax error or something else
yup syntax
17:09
U can simply try select * from "table name" where country like "turkey" age="35" year=1985 this syntax is valid if u are specifying everyone's yar ang separately
hey
I was wondering if anyone knew how this would work. I'm creating an inventory management database, and wanted to have a storage bin that could contain items, but there might be more than one of each item, so there'd be duplicate entries. I'm confused at how to go about this.
17:39
I dont think there will be any problem in entering any duplicate data untill and unless u have assigned primary key to it
Or, is it possible to make a primary key, and if a new item entered is recognized as a duplicate, to increase the quantity by one?
 
1 hour later…
19:02
No primary key means is wont allow any duplicate date in that field it will show error if the same data is entered twice
@Codewizard no actually it was a bit different then normal sql, i have solved it thanks for replying
Ohk wc btw would u like to tell me on which framework u were working

« first day (2814 days earlier)      last day (1504 days later) »