Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
badamsrinivas
Contributor II
Contributor II

Interview question3

A:

Inline * load[

Id

1

1

1

1

];

B:

Inline * load[

Id

1

1

1

1

];

If I use Inner join between Table A, B what is the frequency of 1 Or what is out put?

 

Labels (1)
9 Replies
anat
Master
Master

in Id list box ,the value will be 1

but count(Id) is 16 if we do the inner join else 8

 

vikasmahajan

Hello,

 

It should give you error  because  syntax of inline load 

 

Table A:

Load * inline [

Field

aa

b

b

];

Hope this helps you

Vikas

 

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
vikasmahajan

Syntax in your script is wrong

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
badamsrinivas
Contributor II
Contributor II
Author

A:

Load * Inline[

Id

1

1

1

1

];

B:

Load * Inline[

Id

1

1

1

1

];

If I use Inner join between Table A, B what is the frequency of 1 Or what is out put?

 

Syntax i corrected, Now tell me what is about output or Frequency of 1 if i user inner join between A and B??

badamsrinivas
Contributor II
Contributor II
Author

Sir, thats Typo error, Kindly answer for above query ??

badamsrinivas
Contributor II
Contributor II
Author

Hi Vikas garu,

 

Also Please answer for below new question..

load * inline[

id,region,sales
1,asia,2000
1,US,3000
2,UK,3900
3,africa,8000
3,south,23000

];

load * inline[

id,region,sales
4,south,8999
5,east,8999
5,west,7788
1,east,9000
1,east,8999
] where not exist(id);

what is the output of id?

durgesh22
Creator
Creator

Output table will have below records

id,region,sales

1,asia,2000
1,US,3000
2,UK,3900
3,africa,8000
3,south,23000

4,south,8999
5,east,8999

anat
Master
Master

where not exist(id); means it will check id values in previous table and take only records which are not present in previous table.