0
0
Redisquery~10 mins

SUNIONSTORE for storing results in Redis - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to store the union of sets 'set1' and 'set2' into 'resultSet'.

Redis
SUNIONSTORE [1] set1 set2
Drag options to blanks, or click blank then click option'
AresultSet
Bset1
Cset2
DunionSet
Attempts:
3 left
💡 Hint
Common Mistakes
Using one of the source sets as the destination, which overwrites original data.
Forgetting to specify the destination key.
2fill in blank
medium

Complete the code to store the union of 'usersOnline' and 'usersActive' into 'allUsers'.

Redis
SUNIONSTORE [1] usersOnline usersActive
Drag options to blanks, or click blank then click option'
AusersOnline
BactiveOnline
CusersActive
DallUsers
Attempts:
3 left
💡 Hint
Common Mistakes
Using one of the source keys as the destination, causing data loss.
Choosing a destination key that does not clearly represent the union.
3fill in blank
hard

Fix the error in the command to store the union of 'setA' and 'setB' into 'unionSet'.

Redis
SUNIONSTORE setA [1] setB
Drag options to blanks, or click blank then click option'
AunionSet
BsetB
CsetA
DresultSet
Attempts:
3 left
💡 Hint
Common Mistakes
Placing the destination key in the wrong position.
Using a source set as the destination key.
4fill in blank
hard

Fill both blanks to store the union of 'group1' and 'group2' into 'combinedGroup'.

Redis
SUNIONSTORE [1] [2] group2
Drag options to blanks, or click blank then click option'
AcombinedGroup
Bgroup1
Cgroup2
DunionGroup
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the destination and source keys.
Using the same key for destination and source.
5fill in blank
hard

Fill all three blanks to store the union of 'teamA', 'teamB', and 'teamC' into 'allTeams'.

Redis
SUNIONSTORE [1] [2] [3] teamC
Drag options to blanks, or click blank then click option'
AallTeams
BteamA
CteamB
DcombinedTeams
Attempts:
3 left
💡 Hint
Common Mistakes
Using source keys as the destination.
Incorrect order of source sets.