Write a Python program to print a star pattern.
This SQL version represents pattern requests as rows and returns the generated lines for valid, ready requests. Use the supplied tables and produce one output row for each line of each eligible pattern.
request_id, line_number, and pattern_linerequest_id, then line_number ascending| Column | Type | Description |
|---|---|---|
| request_idPK | INT | Unique pattern request identifier |
| style_id | INT | Referenced pattern style |
| pattern_size | INT | Number of lines requested |
| symbol | VARCHAR(10) | Optional symbol for the pattern |
| status | VARCHAR(20) | Processing status of the request |
| Column | Type | Description |
|---|---|---|
| style_idPK | INT | Unique style identifier |
| style_name | VARCHAR(40) | Pattern style name |
| default_symbol | VARCHAR(10) | Symbol used when a request symbol is null |
| is_active | BOOLEAN | Whether the style can be used |