A mineral is a naturally occurring, inorganic solid with a definite chemical composition and a crystalline structure formed by geological processes. A rock is an aggregate of one or more minerals whereas a rock may also include organic remains and mineraloids.
Sedimentary rocks are formed when different layers of debris ( usually sand ) are forced together under pressure.
Metamorphic rock forms from other types of rock that have been changed by a combination of high heat and pressure.
Igneous rock forms when Lava/Magma cools down
Covalent compound as it is a bond between two non-metals