Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1096637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:18:41+00:00 2026-05-17T00:18:41+00:00

Here is the question You are to label the dice sides with numbers. Each

  • 0

Here is the question

You are to label the dice sides with numbers. Each dice has 6 sides. You have two dice. You must label so that you can display (not sum or product) the numbers 0 to 31. Complete output:

00
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

I tried

(select
       0 as dice1 union
       select 1 union
       select 2 union
       select 3 union
       select 4 union
       select 5 )

    join

(select
       0 as dice2 union
       select 1 union
       select 2 union
       select 3 union
       select 4 union
       select 5 )

I don’t know how to process it further.Help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:18:42+00:00Added an answer on May 17, 2026 at 12:18 am

    As Martin mentioned in his comment, the key to solving this problem is to use the upside down 6 for a 9. See: solution: calendar cubes

    As for a programmatic T-SQL solution, perhaps:

    declare @Dice1 table (
        side int
    )
    
    insert into @Dice1
        (side)
        select 0 union all
        select 1 union all
        select 2 union all
        select 3 union all
        select 4 union all
        select 5
    
    declare @Dice2 table (
        side int
    )
    
    insert into @Dice2
        (side)
        select 0 union all
        select 1 union all
        select 2 union all
        select 6 union all
        select 7 union all
        select 8 union all
        select 9 /* Upside down 6 */
    
    
    select CAST(d1.side as CHAR(1)) + CAST(d2.side as CHAR(1)) as MyDate
        from @Dice1 d1
            cross join @Dice2 d2
        where d1.side * 10 + d2.side <= 31
    union
    select CAST(d2.side as CHAR(1)) + CAST(d1.side as CHAR(1)) as MyDate
        from @Dice1 d1
            cross join @Dice2 d2
        where d2.side * 10 + d1.side <= 31
    order by MyDate
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here my question is not related with coding, I want to know that how
Basic question here - I have many lines of code that look something like:
C# question here.. I have a UTF-8 string that is being interpreted by a
This is sort of a follow-up to my question here: Asp:Label is not shown
A really simple question here. I have a label on one view and a
a noob question here. I have a very strange situation that's very puzzling to
So, here's a question that will probably have the SQL experts jumping all over
Newbee question here - I have this method in the view controller m: -(void)
Basic question here. I started using ARC and am not sure if I should
The question here is whether something like this already exists or, if not, whether

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.