CREATE TABLE Ref_calendar (day_Number VARCHAR2, calendar_date VARCHAR2)
CREATE TABLE All_documents (Date_Stored VARCHAR2, date_stored VARCHAR2)

What is the day Number and date of all the documents?
SELECT T2.day_Number, T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.Date_Stored = T2.calendar_date
SELECT "T2"."day_Number", "T1"."Date_Stored" FROM "All_documents" "T1" JOIN "Ref_calendar" "T2" ON "T1"."Date_Stored" = "T2"."calendar_date"