diff --git a/src/Helper/DbtCompileHelper.php b/src/Helper/DbtCompileHelper.php index 3d9984fc..2c895408 100644 --- a/src/Helper/DbtCompileHelper.php +++ b/src/Helper/DbtCompileHelper.php @@ -19,14 +19,14 @@ public static function getCompiledSqlFilesContent(string $directory): array { $filePaths = self::getCompiledSqlPaths($directory); - $filenames = array_map(fn($sqlFile) => (string) $sqlFile->getFilename(), $filePaths); + $filenames = array_map(fn($sqlFile) => $sqlFile->getFilename(), $filePaths); reset($filePaths); $contents = array_map(fn($sqlFile) => trim( (string) file_get_contents($sqlFile->getPathname()), ), $filePaths); - $combineArray = (array) array_combine($filenames, $contents); + $combineArray = array_combine($filenames, $contents); ksort($combineArray); return $combineArray; diff --git a/src/Service/ArtifactsService.php b/src/Service/ArtifactsService.php index 7874cffb..c8779710 100644 --- a/src/Service/ArtifactsService.php +++ b/src/Service/ArtifactsService.php @@ -90,7 +90,7 @@ public function writeResults(string $projectPath, string $step): void switch ($stepDir) { case 'dbt run': - $compiledSqlContent = DbtCompileHelper::getCompiledSqlFilesContent($targetPath); + $compiledSqlContent = json_encode(DbtCompileHelper::getCompiledSqlFilesContent($targetPath)); file_put_contents($artifactsPath . '/compiled_sql.json', $compiledSqlContent); $manifestJson = (string) file_get_contents($targetPath . '/manifest.json'); diff --git a/tests/functionalSyncActionsNoZip/DatadirTest.php b/tests/functionalSyncActionsNoZip/DatadirTest.php index 5ff30d16..0e9f70f0 100644 --- a/tests/functionalSyncActionsNoZip/DatadirTest.php +++ b/tests/functionalSyncActionsNoZip/DatadirTest.php @@ -7,6 +7,7 @@ use DbtTransformation\Component; use DbtTransformation\Service\ArtifactsService; use Keboola\DatadirTests\DatadirTestCase; +use Keboola\DatadirTests\DatadirTestSpecificationInterface; use Keboola\DatadirTests\Exception\DatadirTestsException; use Keboola\StorageApi\Client as StorageClient; use Keboola\StorageApi\Options\FileUploadOptions; @@ -14,6 +15,7 @@ use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Finder\Finder; use Symfony\Component\Process\Process; +use Throwable; class DatadirTest extends DatadirTestCase { @@ -46,22 +48,13 @@ public function setUp(): void $projectPath = __DIR__ . '/../phpunit/data'; $artifacts->writeResults($projectPath, 'dbt run'); - self::assertFileExists($tmpFolder . '/artifacts/out/current/manifest.json'); - self::assertFileExists($tmpFolder . '/artifacts/out/current/run_results.json'); - self::assertFileExists($tmpFolder . '/artifacts/out/current/model_timing.json'); - - $storageClient->uploadFile( - $tmpFolder . '/artifacts/out/current/manifest.json', - $options, - ); - $storageClient->uploadFile( - $tmpFolder . '/artifacts/out/current/run_results.json', - $options, - ); - $storageClient->uploadFile( - $tmpFolder . '/artifacts/out/current/model_timing.json', - $options, - ); + $files = ['manifest.json', 'run_results.json', 'model_timing.json', 'compiled_sql.json']; + + foreach ($files as $file) { + $filePath = sprintf('%s/artifacts/out/current/%s', $tmpFolder, $file); + self::assertFileExists($filePath); + $storageClient->uploadFile($filePath, $options); + } sleep(1); } @@ -100,4 +93,49 @@ public function tearDown(): void $finder = new Finder(); $fs->remove($finder->in(__DIR__ . '/../../data')); } + + protected function assertMatchesSpecification( + DatadirTestSpecificationInterface $specification, + Process $runProcess, + string $tempDatadir, + ): void { + if ($specification->getExpectedReturnCode() !== null) { + $this->assertProcessReturnCode($specification->getExpectedReturnCode(), $runProcess); + } else { + $this->assertNotSame(0, $runProcess->getExitCode(), 'Exit code should have been non-zero'); + } + if ($specification->getExpectedStdout() !== null) { + try { + $this->assertStringMatchesFormat( + trim($specification->getExpectedStdout()), + trim($runProcess->getOutput()), + 'Failed asserting stdout output', + ); + } catch (Throwable $e) { + //dbt-compile output json is too large to be compared with assertStringMatchesFormat + if (str_contains($e->getMessage(), 'regular expression is too large')) { + self::assertEquals( + trim($specification->getExpectedStdout()), + trim($runProcess->getOutput()), + 'Failed asserting stdout output', + ); + } else { + throw $e; + } + } + } + if ($specification->getExpectedStderr() !== null) { + $this->assertStringMatchesFormat( + trim($specification->getExpectedStderr()), + trim($runProcess->getErrorOutput()), + 'Failed asserting stderr output', + ); + } + if ($specification->getExpectedOutDirectory() !== null) { + $this->assertDirectoryContentsSame( + $specification->getExpectedOutDirectory(), + $tempDatadir . '/out', + ); + } + } } diff --git a/tests/functionalSyncActionsNoZip/run-sync-action-dbt-compile/expected-code b/tests/functionalSyncActionsNoZip/run-sync-action-dbt-compile/expected-code new file mode 100644 index 00000000..c2270834 --- /dev/null +++ b/tests/functionalSyncActionsNoZip/run-sync-action-dbt-compile/expected-code @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/tests/functionalSyncActionsNoZip/run-sync-action-dbt-compile/expected-stderr b/tests/functionalSyncActionsNoZip/run-sync-action-dbt-compile/expected-stderr new file mode 100644 index 00000000..e69de29b diff --git a/tests/functionalSyncActionsNoZip/run-sync-action-dbt-compile/expected-stdout b/tests/functionalSyncActionsNoZip/run-sync-action-dbt-compile/expected-stdout new file mode 100644 index 00000000..ee6fb4fd --- /dev/null +++ b/tests/functionalSyncActionsNoZip/run-sync-action-dbt-compile/expected-stdout @@ -0,0 +1 @@ +{"compiled":{"beers.sql":"SELECT\n \"id\" AS beer_id,\n TRIM(\"name\") AS beer_name,\n \"style\" AS beer_style,\n TRY_TO_NUMERIC(\"abv\",14,8) AS abv,\n TRY_TO_NUMERIC(\"ibu\",14,8) AS ibu,\n CASE \n WHEN ibu <= 50 THEN 'Malty'\n WHEN ibu > 50 THEN 'Hoppy'\n END AS bitterness,\n \"brewery_id\" AS brewery_id,\n \"ounces\" AS ounces\nFROM\n \"KEBOOLA_9457\".\"in.c-dbt_beer_seed\".\"seed_beers\"","beers_with_breweries.sql":"SELECT *\nFROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\" beers\nJOIN \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"breweries\" breweries USING (brewery_id)","breweries.sql":"SELECT\n \"id\" AS brewery_id,\n trim(\"name\") AS brewery_name,\n trim(\"city\") AS brewery_city,\n trim(\"state\") AS brewery_state,\n 'USA' AS brewery_country\nFROM\n \"KEBOOLA_9457\".\"in.c-dbt_beer_seed\".\"seed_breweries\"","order_lines.sql":"-- We'll fake some data, since this is an example repository\n-- we want to make sure that we continue to generate data up\n-- to today\n\nWITH generated_order_lines AS (\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 0, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 1, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 2, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 3, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 4, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 5, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 6, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 7, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 8, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 9, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 10, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 11, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 12, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 13, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 14, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 15, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 16, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 17, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 18, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 19, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 20, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 21, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 22, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 23, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 24, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 25, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 26, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 27, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 28, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n UNION ALL\n \n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '00'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(0)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(0)), 3) AS quantity,\n MOD(ABS(HASH(0)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '01'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '0'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '02'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '10'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(1)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(1)), 3) AS quantity,\n MOD(ABS(HASH(1)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '11'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '1'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '12'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '20'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(2)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(2)), 3) AS quantity,\n MOD(ABS(HASH(2)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '21'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '2'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '22'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '30'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(3)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(3)), 3) AS quantity,\n MOD(ABS(HASH(3)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '31'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '3'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '32'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '40'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(4)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(4)), 3) AS quantity,\n MOD(ABS(HASH(4)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '41'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '4'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '42'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '50'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(5)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(5)), 3) AS quantity,\n MOD(ABS(HASH(5)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '51'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '5'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '52'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '60'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(6)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(6)), 3) AS quantity,\n MOD(ABS(HASH(6)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '61'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '6'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '62'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '70'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(7)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(7)), 3) AS quantity,\n MOD(ABS(HASH(7)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '71'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '7'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '72'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '80'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(8)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(8)), 3) AS quantity,\n MOD(ABS(HASH(8)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '81'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '8'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '82'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n UNION ALL\n \n \n -- Each order has between 1 and 5 order_lines\n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '90'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(9)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(9)), 3) AS quantity,\n MOD(ABS(HASH(9)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '91'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(10)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(10)), 3) AS quantity,\n MOD(ABS(HASH(10)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '9'\n ) AS order_no,\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, current_timestamp),\n 'YYYYMMDD'\n ),\n '92'\n ) AS order_line,\n (\n -- Deterministically select a random beer\n SELECT MOD(\n ABS(HASH(11)),\n (\n SELECT MAX(beer_id) FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\"\n )\n )\n ) AS beer_id,\n 1 +MOD(ABS(HASH(11)), 3) AS quantity,\n MOD(ABS(HASH(11)), 300) \/ 100 AS price,\n DATEADD(Day, -1 * 29, current_timestamp) AS created_at,\n current_timestamp AS changed_at\n\n \n \n \n \n\n \n \n)\n\nSELECT *\nFROM generated_order_lines","orders.sql":"-- We'll fake some data, since this is an example repository\n-- we want to make sure that we continue to generate data up\n-- to today\n\nWITH generated_orders AS (\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 0, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 0, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 0, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 0, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 0, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 0, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 0, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 0, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 0, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 0, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 0, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 1, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 1, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 1, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 1, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 1, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 1, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 1, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 1, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 1, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 1, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 1, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 2, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 2, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 2, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 2, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 2, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 2, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 2, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 2, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 2, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 2, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 2, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 3, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 3, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 3, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 3, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 3, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 3, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 3, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 3, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 3, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 3, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 3, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 4, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 4, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 4, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 4, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 4, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 4, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 4, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 4, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 4, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 4, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 4, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 5, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 5, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 5, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 5, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 5, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 5, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 5, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 5, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 5, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 5, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 5, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 6, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 6, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 6, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 6, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 6, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 6, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 6, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 6, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 6, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 6, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 6, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 7, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 7, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 7, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 7, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 7, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 7, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 7, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 7, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 7, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 7, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 7, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 8, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 8, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 8, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 8, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 8, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 8, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 8, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 8, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 8, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 8, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 8, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 9, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 9, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 9, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 9, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 9, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 9, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 9, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 9, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 9, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 9, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 9, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 10, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 10, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 10, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 10, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 10, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 10, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 10, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 10, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 10, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 10, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 10, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 11, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 11, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 11, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 11, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 11, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 11, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 11, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 11, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 11, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 11, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 11, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 12, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 12, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 12, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 12, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 12, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 12, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 12, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 12, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 12, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 12, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 12, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 13, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 13, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 13, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 13, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 13, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 13, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 13, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 13, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 13, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 13, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 13, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 14, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 14, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 14, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 14, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 14, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 14, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 14, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 14, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 14, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 14, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 14, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 15, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 15, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 15, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 15, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 15, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 15, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 15, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 15, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 15, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 15, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 15, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 16, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 16, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 16, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 16, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 16, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 16, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 16, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 16, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 16, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 16, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 16, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 17, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 17, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 17, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 17, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 17, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 17, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 17, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 17, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 17, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 17, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 17, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 18, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 18, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 18, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 18, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 18, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 18, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 18, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 18, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 18, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 18, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 18, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 19, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 19, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 19, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 19, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 19, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 19, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 19, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 19, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 19, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 19, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 19, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 20, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 20, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 20, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 20, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 20, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 20, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 20, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 20, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 20, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 20, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 20, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 21, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 21, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 21, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 21, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 21, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 21, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 21, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 21, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 21, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 21, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 21, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 22, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 22, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 22, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 22, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 22, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 22, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 22, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 22, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 22, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 22, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 22, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 23, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 23, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 23, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 23, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 23, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 23, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 23, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 23, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 23, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 23, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 23, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 24, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 24, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 24, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 24, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 24, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 24, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 24, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 24, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 24, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 24, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 24, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 25, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 25, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 25, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 25, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 25, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 25, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 25, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 25, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 25, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 25, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 25, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 26, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 26, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 26, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 26, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 26, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 26, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 26, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 26, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 26, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 26, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 26, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 27, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 27, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 27, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 27, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 27, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 27, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 27, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 27, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 27, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 27, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 27, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 28, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 28, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 28, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 28, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 28, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 28, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 28, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 28, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 28, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 28, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 28, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n UNION ALL\n \n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '0'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'PENDING' AS status,\n \n DATEADD(Day, -1 * 29, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '1'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 29, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '2'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 29, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '3'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 29, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '4'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 29, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '5'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 29, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '6'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 29, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '7'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 29, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '8'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 29, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n UNION ALL\n \n \n SELECT\n CONCAT(\n \n TO_VARCHAR(\n DATEADD(Day, -1 * 29, CURRENT_DATE),\n 'YYYYMMDD'\n ),\n '9'\n )::int AS order_no,\n\n UNIFORM(123456, 654321, RANDOM()) AS customer_id,\n\n \n 'DELIVERED' AS status,\n \n DATEADD(Day, -1 * 29, CURRENT_DATE) AS created_at,\n current_timestamp AS changed_at\n\n \n \n\n \n \n)\n\nSELECT *\nFROM generated_orders","promo_deliveries.sql":"SELECT customer_id,\n 'Hoppy' AS promo,\n COUNT(DISTINCT b.beer_name) AS cnt_beers_purchased \n FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"orders\" o\n JOIN \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"order_lines\" ol\n USING (order_no)\n JOIN \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\" b\n USING(beer_id)\n GROUP BY 1\n HAVING COUNT(CASE WHEN b.bitterness = 'Hoppy' THEN 1 END)\n >\n COUNT(CASE WHEN b.bitterness = 'Malty' THEN 1 END)\n\nUNION\n\nSELECT customer_id,\n 'Malty' AS promo,\n COUNT(DISTINCT b.beer_name) AS cnt_beers_purchased\n FROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"orders\" o\n JOIN \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"order_lines\" ol\n USING (order_no)\n JOIN \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers\" b\n USING(beer_id)\n GROUP BY 1\n HAVING COUNT(CASE WHEN b.bitterness = 'Malty' THEN 1 END)\n >\n COUNT(CASE WHEN b.bitterness = 'Hoppy' THEN 1 END)","sales.sql":"SELECT\n \"beers_with_breweries\".beer_id AS beer_id,\n \"beers_with_breweries\".beer_name AS beer_name,\n \"beers_with_breweries\".beer_style AS beer_style,\n \"beers_with_breweries\".abv AS abv,\n \"beers_with_breweries\".ibu AS ibu,\n \"beers_with_breweries\".bitterness AS bitterness,\n \"beers_with_breweries\".ounces AS ounces,\n\n \"beers_with_breweries\".brewery_id AS brewery_id,\n \"beers_with_breweries\".brewery_name AS brewery_name,\n \"beers_with_breweries\".brewery_city AS brewery_city,\n \"beers_with_breweries\".brewery_state AS brewery_state,\n \"beers_with_breweries\".brewery_country AS brewery_country,\n\n \"orders\".order_no AS order_no,\n \"order_lines\".order_line AS order_line,\n \"orders\".created_at AS order_created_at,\n \"order_lines\".quantity AS order_li_quantity,\n \"order_lines\".price AS order_li_price_each,\n \"order_lines\".quantity * \"order_lines\".price AS order_li_price_total\n\nFROM \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"orders\" \"orders\"\nJOIN \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"order_lines\" \"order_lines\" USING (order_no)\nJOIN \"KEBOOLA_9457\".\"WORKSPACE_40201018\".\"beers_with_breweries\" \"beers_with_breweries\" USING (beer_id)\n\nWHERE \"orders\".status = 'DELIVERED'"}} diff --git a/tests/functionalSyncActionsNoZip/run-sync-action-dbt-compile/expected/data/out/files/.gitkeep b/tests/functionalSyncActionsNoZip/run-sync-action-dbt-compile/expected/data/out/files/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/tests/functionalSyncActionsNoZip/run-sync-action-dbt-compile/expected/data/out/tables/.gitkeep b/tests/functionalSyncActionsNoZip/run-sync-action-dbt-compile/expected/data/out/tables/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/tests/functionalSyncActionsNoZip/run-sync-action-dbt-compile/source/data/config.json b/tests/functionalSyncActionsNoZip/run-sync-action-dbt-compile/source/data/config.json new file mode 100644 index 00000000..1d4724de --- /dev/null +++ b/tests/functionalSyncActionsNoZip/run-sync-action-dbt-compile/source/data/config.json @@ -0,0 +1,12 @@ +{ + "componentId": "keboola.dbt-transformation", + "action": "dbtCompile", + "artifacts": { + "options": { + "zip": false + } + }, + "parameters": { + "configId": "12345" + } +}